Limit data points
Option to limit number of logged data points
Model Configuration Pane: Simscape
Description
Specify that the number of data points logged to workspace is limited to the value corresponding to the number of simulation steps specified by the Data history (last N steps) parameter.
Dependencies
To enable the Limit data points parameter, set the Log
simulation data parameter to All
or Use
local settings
.
Settings
- On
Limits the number of data points exported to workspace to those for the number of steps specified by the Data history (last N steps) parameter.
- Off
Does not limit the number of data points. The simulation log variable contains the data points for the whole simulation, at the price of slower simulation speed and heavier memory consumption.
Tips
Saving data to workspace can slow down the simulation and consume memory. Use this parameter to limit the number of data points saved.
Another way to limit the number of data points saved is using the Decimation parameter. The two methods work independently from each other and can be used separately or together.
You must select the Limit data points check box before specifying the number of steps in the Data history (last N steps) parameter.
An alternative way to reduce memory consumption is to enable data streaming to disk, as described in Stream Logging Data to Disk.
The Output options parameter, under Additional parameters on the Data Import/Export pane of the Configuration Parameters dialog box, also affects which data points are logged.
Recommended Settings
Application | Setting |
---|---|
Debugging | No Impact |
Traceability | No Impact |
Efficiency | On |
Safety precaution | No Impact |
Programmatic Use
Parameter:
SimscapeLogLimitData |
Type: character vector | string scalar |
Value:
'on' | 'off' |
Default:
'on' |
Version History
Introduced in R2010a