Naming and using signals within block parameters?
显示 更早的评论
Hi, is there any way to take the output of a simple calculation in Simulink, and then use it in the parameter block of a pulse generator? For example, using a constant block, the user can enter the desired frequency in Hz. Using a divide block, the time period is calculated by dividing 1 by this frequency (t = 1/f). Is there any way to name the output signal of this divide block so that in the pulse generator, for the period parameter I can simply type the name of this signal so that if the user changes the frequency, the period parameter of the pulse generator will change automatically also?
Cheers.
回答(1 个)
Azzi Abdelmalek
2014-12-14
0 个投票
You can do it by creating your own pulse generator, using for example Matlab Function Block or others blocks like switchs.
类别
在 帮助中心 和 File Exchange 中查找有关 Signal Generation 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!