필터 지우기
필터 지우기

Set Simulation Stop Time within GUIDE GUI

조회 수: 4 (최근 30일)
Craig Saunders
Craig Saunders 2018년 8월 28일
댓글: Geoff Hayes 2018년 8월 29일
Hi,
I have created a GUI using GUIDE which starts/ stops a Simulink model using the
set_param
function. I would now like to allow the user to set the simulation stop time by entering their value into an edit text box and clicking a button to update the new stop time. I have tried a few attempts at this but have failed to make this work.
Additionally, i'd also like to pause/ continue a simulation and have managed to get these buttons to work by using
set_param('vdp','SimulationCommand','pause')
set_param('vdp','SimulationCommand','continue')
which does pause the simulation but when I hit 'continue', the simulation jumps forward as if it wasn't paused at all. It would be great to know what is causing this.
Thank you in advance.
  댓글 수: 1
Geoff Hayes
Geoff Hayes 2018년 8월 29일
Craig - I have tried a few attempts at this but have failed to make this work. Can you show your attempts and describe why it isn't working? i.e. are you observing an error and, if so, what is it?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

제품


릴리스

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by