Running simulation a specified number of times
Ältere Kommentare anzeigen
Hi,
Is it possible to run a simulink simulation in a continious loop. i.e after each completion of my simulation, I want the model to restart again and complete the next run. I want this so that I can send some data continiously to another interface, just for some test purpose.
Thanks , Ari.
Antworten (1)
Fangjun Jiang
am 22 Nov. 2011
1 Stimme
Put sim('MyModel') inside your for-loop.
1 Kommentar
Kaustubha Govind
am 22 Nov. 2011
Also see this page for more information on getting outputs and logged states from the sim command: http://www.mathworks.com/help/toolbox/simulink/ug/f11-61836.html
Kategorien
Mehr zu Prepare Model Inputs and Outputs 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!