How to debug a simulink model running on a raspberry pi
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Murat Belge
am 9 Dez. 2013
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.
Siehe auch
Kategorien
Mehr zu Run on Target Hardware finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!