Quantcast

Documentation Center

  • Trial Software
  • Product Updates

Contents

Stop or Restart a Model Running on Raspberry Pi Hardware

    Caution   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 as described in Replace Firmware on Raspberry Pi Hardware.

To stop a model running on the board, in the MATLAB® Command Window, enter:

h=raspberrypi;
h.stop('modelName');

For example, to stop the sumdiff model, enter:

h=raspberrypi;
h.stop('sumdiff');

To restart a model that was previously running on the board or run multiple instances of a model, in the MATLAB Command Window, enter:

h=raspberrypi; 
h.run('modelName');

    Note:   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:

h.run('sumdiff');
Was this topic helpful?