You can load, run, stop, and check the status of a real-time application by using the target computer command-line interface commands.
By default, the target computer displays the session 1 screen with the target computer status monitor. For information about switching to the session 2 screen with the command-line interface, see Target Computer Status Monitor.
To read the target computer
console log, view the log in the
When you are using the target computer command-line interface, target object functions support loading, starting, stopping, and checking the status of the real-time application.
For a description of how to use these commands, see Control Real-Time Application at Target Computer Command Line.
These commands are
Target object commands that you can use through the command-line
interface on the target
computer. Each command appears with its equivalent MATLAB® syntax. In the descriptions, tg_object is the
target object name, and
app_name is the real-time application MLDATX file name.
slrealtime load --AppName app_name
When run from the development computer in the MATLAB Command Window, the
load command deploys the
to the target computer
and loads the application. When run from the target computer command
load command loads the application.
start command runs the
that is loaded on the
stop command stops the
that is running on the
slrealtime install --AppName app_name
install command installs the real-time
standalone operation on the
slrealtime saveParamSet filename
saves the parameter set from the loaded the real-time
application on the
slrealtime loadParamSet filename
loads the parameter set into the real-time
application on the
The target computer uses the QNX Neutrino Real-Time Operating System (RTOS). You can run system commands on the target computer from the development computer by using an SSH utility, such as PuTTY. Or, you can run system commands on the target computer from its keyboard (console). Target computer RTOS system command information is available in the Utilities Reference in the QNX Momentics IDE 7.1 User’s Guide. All commands that this reference identifies as Runs on: QNX Neutrino are supported on the target computer.
Some RTOS commands are required for configuring the target computer. These commands include:
date — set date and time
ntpdate — set the local date and time from NTP
ntpd — start NTP daemon
rtc — set date from hardware clock
For a description of how to use these commands, see Execute Target Computer RTOS Commands at Target Computer Command Line.