Limit data points to last
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
For some models and simulation conditions, logging can produce large amounts of data. Use this parameter to limit the number of values logged when you only need to analyze data from the end of the simulation.
You can also apply a decimation factor to reduce the number of values logged for outputs, states, and time. For more information, see Decimation.
For more information about configuring which data points are logged for different logging techniques, see Specify Signal Values to Log.
Recommended Settings
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