How should I run a simulation in simulink so that the simulation matches the real time clock?
Ältere Kommentare anzeigen
I have made a battery charging and discharging model wherein I have used a variable type solver.
But I need the simulation to run with the real time clock.
My problem is that if I give the simulation time as 100 s then the simulation gets completed much earlier.
Akzeptierte Antwort
Weitere Antworten (1)
Azzi Abdelmalek
am 27 Dez. 2012
Bearbeitet: Azzi Abdelmalek
am 27 Dez. 2012
0 Stimmen
If you have a Real time windows target toolbox you can simulate on real time
1 Kommentar
Azzi Abdelmalek
am 27 Dez. 2012
Bearbeitet: Azzi Abdelmalek
am 27 Dez. 2012
If you have'nt this toolbox you can use an interpreted matlab function where you will put the code pause(n). n is your step time
Kategorien
Mehr zu Simulink finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!