Arduino Standalone app - turn on Pin 13 - P-code Dependency - Application Compiler - error in a = arduino; - “mcc -m Test_arduinoLed13.m"

1 view (last 30 days)
Hello everyone in the Malab forum.
I am a neophyte of arduino in a matlab environment. I am writing to you because I do not know how to develop an executable and standalone script in a matlab environment (2015) or higher version that turns on the Arduino Pin 13. This executable must run on a PC without Matlab.
I have read a lot about the posts of "mathworks.com/matlabcentral/answer ..." but there is no simple explanation for developing standalone app in matlab (2015) that turns on the Arduino Pin 13.
When I use the Application Compiler there are some required P-files that I don't know how to find and insert them. Matlab compiler does cannot read them. How can I read the P-files to compile an executable for arduino?
I tried to use the “Protected Function (P-code) Dependency Analysis Tool” but without success.
I used in the command line “mcc -m Test_arduinoLed13.m -a pragmaTest_arduinoLed13.m”. But without success.
What I don't understand is why the Arduino script works in a matlab environment, but when I try to develop an executable and standalone app, it doesn't work. The executable tells me that there is an error in the line of code where I create an arduino object (a = arduino;)
Please help me, because I don't know how to do it, there is no info on the web.
Thank you all

Answers (0)

Categories

Find more on MATLAB Support Package for Arduino 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!