Clock/pulses controller in Simulink

조회 수: 2 (최근 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.

카테고리

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