Limit data points to last - Option to log only last n data points for outputs, states, and

        time - MATLAB ([original](https://www.mathworks.com/help/simulink/gui/limitdatapointstolast.html)) ([raw](?raw))

Main Content

Option to log only last n data points for outputs, states, and time

Model Configuration Pane: Data Import/Export

Description

Specify whether to log all values or log only the last n data points for outputs, states, and time.

Settings

off (default) | on

off

States and outputs are logged for the entire simulation.

on

Only the last n output, state, and time values are logged. Specify the number of data points to save in the text box. By default, the number of data points to save when you select Limit data points to last is 1000.

Tips

The table summarizes recommended values for this parameter based on considerations related to code generation.

Application Setting
Debugging No impact
Traceability No impact
Efficiency No recommendation
Safety precaution No recommendation

Programmatic Use

Parameter: LimitDataPoints
Value: 'on' | 'off'
Default: 'off'
Parameter: MaxDataPoints
Type: string | character vector
Value: positive integer greater than zero
Default: '1000'

Version History

Introduced before R2006a