Time
Description
Saves simulation time data to the specified variable during simulation.
Category: Data Import/Export
Settings
Default: On, tout
On
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.
Off
Simulink software does not export time data to the MATLAB workspace during simulation.
Tips
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 toDataset
format. Converting the data toDataset
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.
Programmatic Use
Parameter:
SaveTime |
Value:
'on' | 'off' |
Default:
'on' |
Parameter:
TimeSaveName |
Type: character vector |
Value: any valid value |
Default:
'tout' |
Recommended Settings
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | No recommendation |
Safety precaution | No recommendation |