Stop or Restart an Executable Running on BeagleBone Blue Hardware
You can use the MATLAB® Command Window to stop or restart binary executables that are running on the BeagleBone® Blue hardware.
Create a connection from the MATLAB software to the BeagleBone Blue hardware. In this example, the connection is named
If a connection is already present in the MATLAB Workspace, skip this step.
bbblue = beagleboneblue
bbblue = beagleboneblue with properties: DeviceAddress: '192.168.7.2' Port: 22
To stop an executable running on the hardware, use the
stopModelfunction with the connection followed by the name of the executable. The name of the executable is the same as the name of the model from which the executable originated. For example:
stopModel(bbblue,'beagleboneblue_gettingstarted')In this example,
ans = 1
bbbluerepresents the connection to the BeagleBone Blue hardware.
When the executable stops running on the hardware, the function returns
To restart the stopped executable, or to run multiple instances of the executable, use the
runModelfunction. For example:
ans = 1
When the executable starts running on the hardware, the function returns