Control downloading, starting, and resetting of a target application
The rtw.connectivity.Launcher
class, which runs on your
development computer, controls execution of an application on the target
processor.
rtw.connectivity.Launcher(componentArgs)
controls the
download, start, and reset of an application, for example, a PIL
application.
Make a subclass and implement the startApplication
and
stopApplication
methods.
You can implement a destructor method that cleans up resources (for example, a handle to a third-party download tool) when the object is cleared from memory.
Function | Description |
---|---|
getComponentArgs |
|
setExe | setExe(exe) specifies the application that runs on
the target processor. |
getExe | exe=getExe() returns the application that is
running on the target processor. |
startApplication |
MATLAB or Simulink calls the exe = getExe() The
|
stopApplication |
Called by MATLAB to stop execution of the target application. |
getApplicationStatus |
Called by MATLAB or Simulink to detect the current status of the target application. The expected return values are:
If you do not implement the method, the
default return value is
|
getBuilder | builder = obj.getBuilder returns the
rtw.connectivity.Builder object associated with
the launcher object. |
rtw.connectivity.Launcher
in PIL ConnectivityFor an example that shows how to use this object in setting up PIL connectivity, see:
rtw.connectivity.ComponentArgs
| rtw.connectivity.MakefileBuilder
| rtw.connectivity.RtIOStreamHostCommunicator