MATLAB Command-Line Interface

You can interact with the Simulink® Real-Time™ environment through the MATLAB® command-line interface. On your development computer, enter Simulink Real-Time functions in the MATLAB window. 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 command line operations that you can do with the Simulink Real-Time environment.

Complete your most common tasks by using the Simulink Real-Time UIs. Through the UIs, you have access to the Simulink Real-Time capabilities, but not their extended functionality. The command-line interface provides an interactive environment that you can extend.

The MATLAB command-line interface includes:

  • 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 and 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 data from the target computer to the development computer between runs. For standalone target computers, if you write signal data to a file, use SimulinkRealTime.fileSystem functions 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. Use Simulink Real-Time capabilities to change parameters in between runs.

Related Topics