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.


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.

View State Activity Using the Simulation Data Inspector

Use the Simulation Data Inspector to view your state activity.

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

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

Was this topic helpful?