Deployment of Simulink model to Raspberry Pi

4 views (last 30 days)
Zafer
Zafer on 5 Jan 2014
Answered: Murat Belge on 26 Feb 2014
Murat Bey merhabalar. Aklımda birkaç proje var ve Raspberry Pi almak istiyorum. Simulink yada Labview tarzı görsel programlama dillerini daha çok seviyorum. Şunu sormak istiyorum; Raspi yi açtığımda direkt çalışacak bir programı Simulink ile oluşturarak Raspi ye atabilir miyiz? Raspi yi açtığımda kamera görüntüsünü direkt olarak sd karta kaydeden bir programı Simulink ile oluşturarak Raspi de çalıştırabilir miyim? Çok teşekkürler.

Answers (1)

Murat Belge
Murat Belge on 26 Feb 2014
Selam Zafer,
Herkesin anlayabilmesi icin sorunu ingilizce cevapliyorum.
Translated question: Can I create a stand-alone application running on Raspberry Pi? For example, I would like to create an application that records the images captured from the camera to the SD card. Is this possible?
Answer: Yes. All Simulink models developed for Raspberry Pi is translated to an application executable that runs on Raspberry Pi. The executable is typically saved in "/home/pi/<simulink model name>_rtt/MW directory. Once the Simulink model is compiled / run on the Raspberry Pi once, you can launch the application anytime.
There is a demo called "Motion Sensor Camera" that does something similar to what you are asking. In this demo, Raspberry Pi monitors a PIR motion sensor. When PIR motion sensor detects movement, camera is activated and a snapshot is captured. The snapshot is saved onto the SD card for viewing later. You can improve on this if you are OK with saving just snapshots.

Categories

Find more on Raspberry Pi Hardware in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!