Documentation

Signal Logging with Simulink Real-Time Explorer

Value logging with real-time information

To log signal values and times, add a real-time file Scope block or an Outport block to your model. At run time, add a real-time file scope with Simulink® Real-Time™ Explorer. See Signal Logging Basics and File Scope Usage.

A file scope creates a file on the target computer that you can download to the development computer for offline analysis. See File System Basics.

An Outport block produces a vector of signal states and times in RAM on the target computer. To download it onto the development computer and store the vector in a file for analysis, use MATLAB®.

Tools

Simulink Real-Time ExplorerInteract with target computer and real-time application running on target computer

Functions

slrtexplrConfigure target computer and real-time application for execution

Blocks

ScopeReal-time Scope block

Topics

Background

Signal Logging Basics

Acquire signal data while running a real-time application and transfer the data to the development computer for analysis.

File System Basics

Access the target computer file system with the SimulinkRealTime.fileSystem object.

Signal Logging Buffer Size

Calculate the buffer size that is required for signal logging.

Simulink Real-Time Scope Usage

Learn about usage issues that are common to all Simulink Real-Time Scope types.

File Scope Usage

Learn about usage issues that are unique to file scopes.

Display and Filter Hierarchical Signals and Parameters

Find and view signals and parameters with hierarchical path information

Scope Trigger Configuration

Learn about configuring scopes so that they wait until triggered to acquire data.

Pretriggering and Posttriggering of Scopes

Learn about configuring scopes so that they acquire data before or after the trigger event.

Trigger One Scope with Another Scope

Learn about configuring scopes so that they acquire data in response to the triggering of another scope.

Data Logging with File Scopes

Configure Real-Time File Scope Blocks

Prepare to log signal and time data on the target computer with real-time Scope blocks in file mode.

Create File Scopes with Simulink Real-Time Explorer

Log state and time data for later analysis by using file scopes.

Configure File Scopes with Simulink Real-Time Explorer

Prepare to log data to a file on the target computer.

Log Signal Data into Multiple Files

Acquire signal data and store it in multiple files on the target computer.

Data Logging with Simulink Blocks

Log Signal Data with Outport Blocks and Simulink Real-Time Explorer

Log signal data by using an Outport block and Simulink Real-Time specific logging functions.

Simulink Real-Time Interface Blocks to Simulink Models

Create a user interface model by using the To Target and From Target blocks.

Triggering, Sampling, and Creating Groups

Trigger Scopes with Simulink Real-Time Explorer

Configure scopes to trigger automatically or in response to user action.

Configure Scope Sampling with Simulink Real-Time Explorer

Sample the output data for display and processing.

Create Signal Groups with Simulink Real-Time Explorer

Group signals across hierarchical model boundaries.

Limitations

Signals Not Accessible by Name

Signal types that cannot be monitored, traced, or logged.

Internationalization Issues

Learn about Simulink Real-Time support for internationalization.

Featured Examples

Was this topic helpful?