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.
How to enable signal logging, choose a format, configure states and data, and access the simulation output.
During simulation, Stateflow saves logged data in a signal logging object, which you can access in the MATLAB workspace.
When you simulate a chart, you can log values for local data, output data, and state self activity into Simulink® objects.
Stateflow logs each update to a multidimensional signal as a single change.
You can view logged data in a figure window, for example, by
Use the Simulation Data Inspector to view your state activity.
Chart instances inherit logging properties from the library chart to which they are linked.
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