Clock/pulses controller in Simulink

1 次查看(过去 30 天)
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.

类别

Help CenterFile Exchange 中查找有关 Sources 的更多信息

产品


版本

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by