pause and play simulink in programming

2 views (last 30 days)
Hyoung-Sik Choi
Hyoung-Sik Choi on 16 Feb 2013
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.

Answers (2)

Kaustubha Govind
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.

Hyoung-Sik Choi
Hyoung-Sik Choi on 20 Feb 2013
thank you for reply.
Actually, the most important phase that I want is step 5.
My real 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, at this time I want to make initial time to be zero.
6. compare the result output y with test data y.
I tryed many approach, but I could not found yet. Help me~

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!