필터 지우기
필터 지우기

where can i see task overruns while running a simulink model on raspberry pi

조회 수: 2 (최근 30일)
breezer
breezer 2017년 11월 10일
댓글: Madhu Govindarajan 2018년 2월 8일
Hello,
i use the hardware support to run simulink models on Raspberry pi. In the previously used Matlab R2015b i got an Command-line window which displayed me task overruns after the compilation process.
Now i will use Matlab R2017a and the problem is that this Command-line window does not appear after the compilation process.
The question is: how can i see task overruns or how can i activate this Command-line window?
Kind regards...

답변 (3개)

Nick Choi
Nick Choi 2017년 11월 13일
You can detect task overruns for a Simulink model running on a Raspberry Pi by enabling 'Enable overrun detection' in the model's configuration parameters as described in this documentation page:
  댓글 수: 1
Madhu Govindarajan
Madhu Govindarajan 2017년 11월 13일
If you follow these steps, when there is a task overrun the digital LED on the Pi blinks at a constant rate.

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


breezer
breezer 2017년 11월 15일
편집: breezer 2017년 11월 15일
Thank you for your reply,
yes you are right Madhu, the LED is flashing if an overrun occurs. In my opinion it is a step backwards to remove the CMD-Line messages, because a flashing LED can also be a memory write or something.
Nevertheless, is it possible to activate the old overrun message via CMD-Line window somehow?
  댓글 수: 2
Madhu Govindarajan
Madhu Govindarajan 2017년 11월 15일
I personally have never experienced what you are referring to with R2015b (CMD-line message), so cannot comment much. But I feel like this might be related to the View Diagnostics stuff.
Have you checked the View Diagnostics pane for these types of warnings? https://www.mathworks.com/help/simulink/ug/diagnose-simulation-errors.html
breezer
breezer 2017년 11월 15일
I have taken a screenshot of the CMD-Line window wich display some overruns... The Diagnostic-View shows no errors or warnings...

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


Ashley Warne
Ashley Warne 2018년 2월 7일
편집: Ashley Warne 2018년 2월 7일
A MODELNAME.log file is created in the same folder on the Rasp Pi as the model. Overruns are reported in this file. If you open up a remote command line session to the Rasp Pi as explained in the link below then you can run the command "cat MODELNAME.log" to print out this file to the screen and see if the model is over running. This works even while the model is running.
Make sure you enable overrun detection.
@Mathworks - The documentation mentions nothing about the LED and still refers to errors being thrown to the command line. The LED doesn't provide useful feedback anyway as it's always blinking for one reason or another. Perhaps you should mention that the .log file can be inspected to determine if the model is overrunning.
  댓글 수: 1
Madhu Govindarajan
Madhu Govindarajan 2018년 2월 8일
That is definitely valuable feedback. I have passed on your feedback to MathWorks developer who works on this product for their consideration to update the documentation.

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

카테고리

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