where can i see task overruns while running a simulink model on raspberry pi
1 回表示 (過去 30 日間)
古いコメントを表示
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...
0 件のコメント
回答 (3 件)
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
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
2017 年 11 月 15 日
編集済み: breezer
2017 年 11 月 15 日
2 件のコメント
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
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
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 Center および File Exchange で Run on Target Hardware についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!