Documentation

Basic Approach to Logging States and Data

The workflow for logging chart local data, output 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 data for signal logging, which includes controlling how much output the simulation generates.

    See Configure States and Data for Logging.

  3. Simulate the chart.

  4. Access the logged data.

    See Access Signal Logging 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?