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
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.

카테고리

제품

질문:

2014년 12월 14일

답변:

2014년 12월 14일

Community Treasure Hunt

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

Start Hunting!

Translated by