Raspberry Pi matlab support

조회 수: 3 (최근 30일)
Alahgholipour Omrani
Alahgholipour Omrani 2015년 7월 25일
댓글: Alahgholipour Omrani 2015년 7월 29일
I need to do an object detection based on the CascadeObjectDetector and deploy it into raspberry pi B+ and when it detects the object, sends signal to GPIO.
So there are two situations that I need help and your comments about:
- If I use Simulink to deploy it into raspberry pi and use s-fuction and "coder.extrinsic('vision.CascadeObjectDetector');" to use CascadeObjectDetector in Simulink, it says the CascadeObjectDetector is not deploy-able.
- If I use .m file and want make an standalone file by using Application Compiler and use it in raspberry pi with windows IOT, can make .exe file but while running it it makes error about the command "mypi=raspi();" for making the connection to raspberry pi. Although the code itself runs as .m file without any errors (I copied it here). Here is an example of .m file that can run as .m file but cannot be run after making .exe file
clear mypi;
mypi=raspi();
configureDigitalPin(mypi,4,'output');
while 1>0
writeDigitalPin(mypi,4,1);
pause(0.0001);
writeDigitalPin(mypi,4,0);
pause(0.0001)
end
So do you have any suggestion, how I can solve any of these problems? Or is there any other developer boards except Raspberry Pi that the communication commands with board can have possibility to be changed to the standalone files?
And a general question: Can a Matlab file be deployed in Raspberry Pi like the Simulink file?
Thanks, Arash

답변 (1개)

Cindy Solomon
Cindy Solomon 2015년 7월 28일
편집: Cindy Solomon 2015년 7월 28일
Hi Arash,
In regards to your first question regarding the CascadeObjectDetector, the vision.CascadeObjectDetector is only supported in simulation modes (so you won't be able to generate code for this object outside of Simulink and therefore cannot deploy it). You can tell this by the "coder.extrinisic" before the function call. For more information on what it means to declare something extrinisic, see this doc link.
For your question regarding connecting to a Raspberry Pi, there is a Simulink support package for Raspberry Pi hardware that you can download to run Simulink models as standalone applications. I would highly recommend taking a look at this page, which will help you get started with doing so and check that the communication is working properly. I'm not quite sure what you mean by "Application Compiler." How are you generating a .exe file currently? There is also a MATLAB support package for the Raspberry Pi and a corresponding "Getting Started" guide here .
I hope this helps!
  댓글 수: 1
Alahgholipour Omrani
Alahgholipour Omrani 2015년 7월 29일
Dear Cindy
Thanks for your comments and suggestion. Actually I was kind of aware of these stuff. Mostly i was wondering if there is any way that an .m file can be run on Raspberry pi like a simulink file or not? And if there is any way to run CascadeObjectDetector or any alternative in simulink that can be deployable on raspberry pi?
Thanks, Arash

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 MATLAB Support Package for Raspberry Pi Hardware에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by