Clock/pulses controller in Simulink
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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
0 Commenti
Risposte (1)
Fangjun Jiang
il 11 Ago 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.
0 Commenti
Vedere anche
Categorie
Scopri di più su Sources in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!