Time
Description
Saves simulation time data to the specified variable during simulation.
Category:Data Import/Export
Settings
Default:On,tout
-
On
-
万博1manbetx®software exports time data to the MATLAB®workspace during simulation.
Specify the name of the MATLAB variable used to store time data. SeeExport Simulation Datafor more information.
-
Off
-
Simulink software does not export time data to the MATLAB workspace during simulation.
Tips
You must select theTimecheck 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 parametersincludes parameters for specifying a limit on the number of data points to export and the decimation factor.
To specify an interval for logging, use theLogging intervalsparameter.
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, seeDataset Conversion for Logged Data.Do not use a variable name that is the same as a
Simulink.SimulationOutput
object function name or property name.
Command-Line Information
Parameter:SaveTime |
Value:'on' |'off' |
Default:'on' |
Parameter:TimeSaveName |
Type:特征向量 |
Value:any valid value |
Default:'tout' |
Recommended Settings
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | No recommendation |
Safety precaution | No recommendation |