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 slrtLogViewer
.
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.
These are 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.
Target:
slrealtime load --AppName app_name
MATLAB:
load(tg_object,'app_name')
When run from the development computer in the MATLAB Command Window, the
load
command deploys the
real-time application
to the target computer
and loads the application. When run from the target computer command
interface, the load
command loads the application.
Target:
slrealtime start
MATLAB:
start(tg_object)
The start
command runs the
real-time application
currently loaded on the
target computer.
Target:
slrealtime stop
MATLAB:
stop(tg_object)
The stop
command stops the
real-time application
currently running on the
target
computer.
Target:
slrealtime install --AppName app_name
MATLAB:
install
(tg_object,'app_name')
The install
command install the real-time
application on the
target
computer.
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
server
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.