Documentation

Real-Time Simulation

Real-time target; normal, accelerator, and external modes; sample rate; real-time scope parameters

To evaluate the real-time behavior of your model, run the model, log data, tune parameters, and view signals from the Simulink® toolbar. Capture signals from the model and display them with standard Simulink Scope blocks. Run your model in normal, accelerator, or external mode, depending upon the sample rate that you require.

If you require a moderate sample rate, up to 1 kHz, use normal or accelerator mode. In these modes, you run the Simulink model within MATLAB®. Only the I/O module drivers run in the Simulink Desktop Real-Time™ kernel.

If you require a higher sample rate, up to 20 kHz, use external mode. In external mode, you use Simulink Coder™ to generate a real-time application from the model. The real-time application and the I/O module drivers run in the Simulink Desktop Real-Time kernel.

Functions

rtwhoDisplay information about development computer status

Topics

Prerequisites

Configure a Model

Configure a Simulink model to run as a real-time application.

Normal Mode

Real-Time Execution in Normal Mode

Learn about the behavior of Simulink Desktop Real-Time in Simulink normal mode.

Accelerator Mode

Real-Time Execution in Accelerator Mode

Learn about the behavior of Simulink Desktop Real-Time in Simulink accelerator mode.

External Mode

Real-Time Execution in External Mode

Learn about the behavior of Simulink Desktop Real-Time in Simulink external mode.

Display

Inspect Simulink® Desktop Real-Time™ Signals with Simulation Data Inspector

Trace signals by using SDI in Simulink external mode.

Water Tank Model with Dashboard

The example model "sldrtex_dashboard" shows a real-time model of a water tank controlled by dashboard controls.

Was this topic helpful?