GUI-Simulink

조회 수: 1 (최근 30일)
Nitesh
Nitesh 2011년 6월 30일
Sir/Madam, I had asked two questions. 1. How to make a simulink model to stop simulation using a push button in GUI? am making use of sim command to start simutaion. Suppose the name of model is final_guidance_4.
2. In the same model mentioned above, I want user to input the value of forward velocity in GUI edit text box. this value is to be stored source block parameter "u" which would be a constant. Please guide me
I got following answers Gerd answered 21 minutes ago
Hi Nitesh,
you can use
set_param(gcs, 'SimulationCommand', 'start')
or
set_param(gcs, 'SimulationCommand', 'stop')
to start and stop the current simulink simulation
To change the value of a constant block simple write
u = 'something new';
Gerd
Now I wanna ask that I want the edit text box data entered by user to be stored as value of constant u in simulink model block parameter. please help. If writing u = 'something new'; would help then where I have to write this
  댓글 수: 1
Gerd
Gerd 2011년 6월 30일
Nitesh please delete this new question

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

답변 (0개)

카테고리

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