How to stop a simulink model on a standalone raspberry pi?

조회 수: 9 (최근 30일)
Abhishek Kekud
Abhishek Kekud 2018년 2월 15일
댓글: irfan ullah 2019년 8월 6일
I am using Matlab 2017a version to develop an application on raspberry pi. The model is developed and deployed to the raspberry pi board. The raspberry should work as a standalone application. To run the model, I am using the command "sudo ./<Name of the model>.elf". How can I stop this model from the raspberry pi terminal. Ctrl+C works sometimes but the model does not stop all the time. Please suggest how to stop the running standalone simulink models.

채택된 답변

Von Duesenberg
Von Duesenberg 2018년 2월 15일
편집: Walter Roberson 2018년 2월 16일
In a terminal window, type top to see the running processes and look at the PID column for the number corresponding to your standalone model. Then exit top by pressing q, and type sudo kill <PID> (<PID> should be replaced by your own PID).
  댓글 수: 2
Abhishek Kekud
Abhishek Kekud 2018년 2월 16일
Thank you Von for this idea. I am trying to run a python based GUI on raspberry pi and I am looking out for options to run the standalone simulink model, pass parameters to the model and stop the model whenever required. Please suggest the some ways. Your suggestions are awaited.
irfan ullah
irfan ullah 2019년 8월 6일
Hello Abhishek Kekud,
We are trying to do the same but have not found a solution. So if you have finally got one, can you please share it with us.
Kind regards,
Irfan

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

추가 답변 (1개)

Madhu Govindarajan
Madhu Govindarajan 2018년 2월 16일
What if you follow this page and try sudo killall 'modelname.elf' ?
That seems like a worthy try in my mind.

카테고리

Help CenterFile Exchange에서 Run on Target Hardware에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by