The workflow for logging chart local data, output data, and state self activity is similar to the workflow for logging signals in a model:
The following procedure explains how to enable signal logging for any model.
You can configure the same properties for logging states, local data, and output data in a chart as you can for logging signals in a model:
During simulation, Stateflow® saves logged data in a signal logging object, which you can access in the MATLAB® workspace.
You can view logged data in a figure window, for example, by
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
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.
If active state output is enabled for a state, then logging through Stateflow is unavailable.