pause and play simulink in programming
이전 댓글 표시
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
2013년 2월 19일
0 개 추천
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
2013년 2월 20일
카테고리
도움말 센터 및 File Exchange에서 Simulink에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!