MATLAB Answers

Arduino-Simulink upon Arduino reset

16 views (last 30 days)
Stephen Kramer
Stephen Kramer on 11 Mar 2016
Hello, Just completing the example for the Arduino-Simulink support package for running in external mode:
I noticed when the usb is disconnected from the board the program continues to run on the board, also if you select the disconnect option from the code menu, as expected. However once the Arduino is running independently the program does not restart if you press the Arduino reset button like it does with normal Arduino sketch uploads. Is this expected when using the Matlab Arduino connection? Is there actually uploaded code on the board that can be restarted upon reset? If so how can you do that? Thanks.


Sign in to comment.

Answers (1)

Madhu Govindarajan
Madhu Govindarajan on 19 Oct 2017
If you follow this documentation page -, you should be able to restart the model by just pressing on the reset button.


Stephen Kramer
Stephen Kramer on 19 Oct 2017
That's the problem exactly - the board does not restart after pressing reset, after disconnecting from the PC.
Madhu Govindarajan
Madhu Govindarajan on 20 Oct 2017
Even if you deploy the code to the hardware instead of external mode?

Sign in to comment.


Community Treasure Hunt

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

Start Hunting!