Naming and using signals within block parameters?
Mostrar comentarios más antiguos
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.
Respuestas (1)
Azzi Abdelmalek
el 14 de Dic. de 2014
0 votos
You can do it by creating your own pulse generator, using for example Matlab Function Block or others blocks like switchs.
Categorías
Más información sobre Sources en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!