Saves simulation time data to the specified variable during simulation.
Category: Data Import/Export
Default: On, tout
Simulink® software exports time data to the MATLAB® workspace during simulation.
Specify the name of the MATLAB variable used to store time data. See Export Simulation Data for more information.
Simulink software does not export time data to the MATLAB workspace during simulation.
You must select the Time check box before entering the time variable.
Simulink software saves the output to the MATLAB workspace at the base sample rate of the model. Use a To Workspace block if you want to save output at a different sample rate.
Additional parameters includes parameters for specifying a limit on the number of data points to export and the decimation factor.
To specify an interval for logging, use the Logging intervals parameter.
If you use a format other than Dataset
,
you can convert the logged data to Dataset
format.
Converting the data to Dataset
makes it easier
to postprocess with other logged data. For more information, see Dataset Conversion for Logged Data.
Do not use a variable name that is the same as a Simulink.SimulationOutput
object
function name or property name.
Parameter: SaveTime |
Value: 'on' | 'off' |
Default: 'on' |
Parameter: TimeSaveName |
Type: character vector |
Value: any valid value |
Default: 'tout' |
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | No recommendation |
Safety precaution | No recommendation |