Maximum step size or automatic timing
Ältere Kommentare anzeigen
Hi,
First time here, so please bear with me while I get the hang of this.
I am modelling a dc-dc converter at high frequency using peak current control using SimPowerSystems. I know that simulink uses a variable time steps to speed up the simulation time. Now, my model relies on a set pulse to activate an SR flip flop. The trick here is that the set action only needs to happen at the beginning of the period and begone as soon as possible thereafter to give the control signal the time to reset it when necessary during the period. But with variable timing this does not always happen; i.e. the pulse sets the flipflop but does not quickly disappear because of the large step size.
Now, I was wondering what the best way to over come this is: I could set the maximum step size to for example, 1e-6 seconds or I can set my pulse generator to a period of 1e-4 and the percentage of the duty cycle to 0.01.
I noticed that there is a timing difference between the 2 methods and want to know which method (or any other that people might know) works best (i.e. fastest with highest accuracy).
Regards,
Dirk
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Electrical Sensors finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!