How to Stop the Execution of Simulink in response to a Signal

조회 수: 5 (최근 30일)
Teo Samuel
Teo Samuel 2012년 2월 24일
Hi all,
I am currently dealing with real time control using MATLAB. The system I have is a host computer, a target processor and my hardware.
There are two limit switches installed on my hardware. So, I would like to design a way that whenever the limit switch is activated,a signal will be sent back to the target processor and eventually to the simulink in the host computer that control the entire process. This signal will thus stop the execution of the simulink automatically(like clicking the stop tab " II " in the simulink).
Can I know how to achieve this? Please help this is quite urgent. Thank you very much.
Regards
  댓글 수: 1
Walter Roberson
Walter Roberson 2012년 2월 27일
http://www.mathworks.com/matlabcentral/answers/29922-why-your-question-is-not-urgent-or-an-emergency

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

답변 (1개)

Kaustubha Govind
Kaustubha Govind 2012년 2월 24일
Try the Stop Simulation block. It stops the simulation when its input is non-zero.

카테고리

Help CenterFile Exchange에서 Multicore Processor Targets에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by