Data Logging Options - MATLAB & Simulink (original) (raw)

When you set the Log simulation data configuration parameter toAll or Use local settings, other options in the Data Logging group box become available.

Saving data to the workspace can slow down the simulation and consume memory. To avoid this, you can use either the Decimation parameter, or Limit data points in conjunction with Data history (last N steps), or both methods, to limit the number of data points saved. The two methods work independently from each other and can be used separately or together. For example, if you specify a decimation factor of 2 and keep the default value of10000 for the Data history (last N steps) parameter, your workspace variable will contain downsampled data from the last 20,000 time steps in the simulation.

Another way to reduce memory consumption is to enable data streaming to disk, as described in Stream Logging Data to Disk.

Note

The Output options parameter, underAdditional parameters on the Data Import/Export pane of the Configuration Parameters dialog box, also affects which data points are logged.

After changing your data logging settings, rerun the simulation to generate a new data log.

See Also

Topics