pause and play simulink in programming

조회 수: 5 (최근 30일)
Hyoung-Sik Choi
Hyoung-Sik Choi 2013년 2월 16일
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.

답변 (2개)

Kaustubha Govind
Kaustubha Govind 2013년 2월 19일
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 2013년 2월 20일
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~

카테고리

Help CenterFile Exchange에서 Simulink에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by