This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Signal Logging and Test Point Monitoring

Track data values and state activity

Log local data, output data, and state self-activity with signal logging. You can monitor and access data from your Stateflow® chart. The Simulink.SimulationData.Dataset object contains your logged data, which you can access from the MATLAB® workspace.

Topics

Basic Approach to Logging States and Data

How to enable signal logging, choose a format, configure states and data, and access the simulation output.

Access Signal Logging Data

During simulation, Stateflow saves logged data in a signal logging object, which you can access in the MATLAB workspace.

What You Can Log During Chart Simulation

When you simulate a chart, you can log values for local data, output data, and state self activity into Simulink® objects.

How Stateflow Logs Multidimensional Data

Stateflow logs each update to a multidimensional signal as a single change.

View Logged Data

You can view logged data in a figure window, for example, by using the plot function.

Log String Data to the Simulation Data Inspector

View text strings in the Simulation Data Inspector and in the MATLAB workspace.

View State Activity by Using the Simulation Data Inspector

Monitor active state data through the Simulation Data Inspector.

Log Data in Library Charts

Chart instances inherit logging properties from the library chart to which they are linked.

Monitor Test Points in Stateflow Charts

This example shows you how to specify data or states as test points that you can plot with a floating scope or log to the MATLAB® base workspace during simulation.