How to debug a simulink model running on a raspberry pi
조회 수: 4 (최근 30일)
이전 댓글 표시
Hello guys..
I have developed a simple image processing model using the raspberry pi toolkit on simulink. The image is captured using the V4L2 camera, processed and controls the on board Leds. I am looking for support on how can i get debug information on the raspberry pi to see if my model is working as expected. for example, using dmesg on the linux terminal to get information on the working of the simulink model. As a first level debug, i ran my model on my desktop (attached camera to the desktop and used scope to validate the output), and it works perfectly fine. But if i deploy it on the rpi, my output is not as expected. [i did check the gpio levels using cat /sys/kernel/debug/gpio and the values are not as per my expected output]
Thankyou for reading through & helping me out.
-Sajo
댓글 수: 0
답변 (1개)
Murat Belge
2013년 12월 9일
After simulating your model on the host computer, you should run the model in "External Mode". In this mode, the model actually runs on the Raspberry Pi but you view the signals in your Simulink model on your host computer. By this way, you can attach scopes to the GPIO Write blocks etc. and also view the results of your algorithm. Look at the Raspberry Pi demos to learn how to run a model in External Mode.
참고 항목
카테고리
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!