Basic Approach to Logging States and Local Data

The workflow for logging chart local data and state self activity is similar to the workflow for logging signals in a model:

  1. Enable signal logging for the chart and choose a logging format.

    See Enable Signal Logging.

  2. Configure states and local data for signal logging, which includes controlling how much output the simulation generates.

    See Configure States and Local Data for Logging.

  3. Simulate the chart.

  4. Access the logged data.

    See Access Logged Data.

You can also use active state output to view or log state activity data in Simulink®. For more information, see About Active State Data.

Was this topic helpful?