You can interact with the Simulink® Real-Time™ environment through the MATLAB® command-line interface. Enter Simulink Real-Time functions in the MATLAB window on the development computer. You can also write your own MATLAB scripts that use Simulink Real-Time functions for batch processing.
The Simulink Real-Time software has more than 90 MATLAB functions for controlling the real-time application from the development computer. These functions define, at the most basic level, what you can do with the Simulink Real-Time environment.
The GUIs provided with the Simulink Real-Time product are for completing the most common tasks. They use the Simulink Real-Time functions but do not extend their functionality. The command-line interface provides an interactive environment that you can extend.
The MATLAB command-line interface includes the following functions:
Environment — Create a target boot kernel and directly change the environment properties without using a graphical interface.
Control — Restart the target computer, download a real-time application, start the real-time application, change start and sample times without regenerating code, and stop the real-time application. Record task execution time during or after the last run. Add and remove scopes, add/remove signals to scopes, and define triggers for scope display.
Signal acquisition — Trace signals for viewing
while the real-time application is running and monitor signal values
without time information. Transfer logged signal data to the MATLAB workspace
by uploading from the target computer to the development computer
between runs. For standalone target computers, if you write signal
data to a file, use
to copy that file to the development computer.
Parameter tuning — Change tunable block parameters and tunable global parameters while the real-time application is running, and use Simulink Real-Time functions to change parameters in between runs.
For more information, see: