pause and play simulink in programming
2 views (last 30 days)
Show older comments
Same question as below;
But, I am still hungly for more information, Please consider following experiment.
I want to control the simulink model in m-file.
experiment is tire(or landing gear) trimming without using 1/s block and 'trim' fuction. and comparing with test data
1. start falling simulation with given forward velocity
2. check output y (altitude and velocity)
3. if altitude reach to steady state and the velocity reach to certain speed.
4. then pasue
5. and continue with appling 'steering control input' as test data
6. compare the result output y with test data y (step 5 result).
I have try three approach, sim,set_param, model
1. sim: the problem was, could not pause
2. set_param: the problem was, could not export the output as time.
3. model: time marching was impossible.(integrating the 'dx' using built-in integraton algorithm, i.e,ode4)
I need some idea to solve the experiment.
0 Comments
Answers (2)
Kaustubha Govind
on 19 Feb 2013
If you need to restart the simulation in step (5), then why pause in (4) at all? Why not simply stop the simulation when y reaches steady state? You can use the Stop block to do this for you. Just use the SIM command, and allow the Stop block to end the simulation at steady state.
0 Comments
See Also
Categories
Find more on Outputs in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!