Problem with Simulink and Arduino Uno Board

3 views (last 30 days)
I programmed Arduino using Simulink blocks. It is working fine but every time it should connect to Simulink to work.
When I close the Simulink the Arduino is not working, in this case, I can't keep my PC ON with Simulink to run the Arduino.
Is there any solution to use the only Arduino with 12V adaptor after uploading from Simulink.
Thank You

Accepted Answer

Arun Kumar
Arun Kumar on 30 Jan 2020
Edited: Arun Kumar on 31 Jan 2020
Hi Vasavi,
I think you are running the model in "External Mode" which requires Simulink model to be running in order to run the program on the target.
To independently run the code, use "Build, Deploy & Start" option available under Hardware tab. Refer this doc page:
For older releases, follow this documentation:

More Answers (0)

Community Treasure Hunt

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

Start Hunting!