Clock/pulses controller in Simulink

2 visualizaciones (últimos 30 días)
Rilwanu Ar Roiyyaan
Rilwanu Ar Roiyyaan el 11 de Ag. de 2022
Respondida: Fangjun Jiang el 11 de Ag. de 2022
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

Respuestas (1)

Fangjun Jiang
Fangjun Jiang el 11 de Ag. de 2022
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.

Productos


Versión

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by