Naming and using signals within block parameters?

1 view (last 30 days)
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.

Answers (1)

Azzi Abdelmalek
Azzi Abdelmalek on 14 Dec 2014
You can do it by creating your own pulse generator, using for example Matlab Function Block or others blocks like switchs.

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!