You can load, run, stop, and check 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 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 status of the real-time application.
Refer to Control Real-Time Application at Target Computer Command Line for a description of how to use these commands.
Target object commands that you can use through the command-line
interface on the target
computer. Each command appears with the 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
currently loaded on the
stop command stops the
currently running on the
slrealtime install --AppName app_name
install command install 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 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.0 User’s Guide. All commands that this reference identifies as Runs on: QNX Neutrino are supported on the target computer.
A few RTOS commands are needed 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
Refer to Execute Target Computer RTOS Commands at Target Computer Command Line for a description of how to use these commands.