How to debug a simulink model running on a raspberry pi
조회 수: 3 (최근 30일)
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.
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.