Clock/pulses controller in Simulink

1 ビュー (過去 30 日間)
Rilwanu Ar Roiyyaan
Rilwanu Ar Roiyyaan 2022 年 8 月 11 日
回答済み: Fangjun Jiang 2022 年 8 月 11 日
Hello
I have mulitple pulse generators and each runs in different pulse width and phase from one another. These width and phase may vary over simulation scenarios. Is there any specific block to easily manage and control this? something probably like clock master, etc
Thanks in advance

回答 (1 件)

Fangjun Jiang
Fangjun Jiang 2022 年 8 月 11 日
If you want to adjust the width or phase while the simulation is running, then you can use the Slider block. Add the Slider block to the model, link it to the parameters (period, width, delay, etc) of the Pulse Generator block. Start simulation, adjust the slider and you will see the effect on the pulse through a Scope block.
If changes are needed between "scenarios", which may mean from one simulation to another simulation, then the typical way of doing it is to set different parameter values. For example, if you set the period of the Pulse Generator block as "Period", then you set Period=1 in one simulation and Period=2 in another simulation.

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by