Stop or Restart a Model Running on Raspberry Pi Hardware
Do not use the RESET button to stop a running model and reboot the board. Doing so can corrupt operating system and program files. To repair corrupt files, replace the firmware using Hardware Setup.
To stop a model running on the board, in the MATLAB® Command Window, enter:
For example, to stop the sumdiff model, enter:
To restart a model that was previously running on the board or run multiple instances of a model, in the MATLAB Command Window, enter:
You do not need to enter
h=raspberrypi; multiple times if a
previous instance of
h is available in the MATLAB Workspace.
For example, to restart the sumdiff model you stopped in the previous example, enter: