Single simulation output
Description
Specify whether to return simulation data as a single
Simulink.SimulationOutput
object. Simulation data includes
simulation metadata and all data logged to the workspace, including outputs, states,
data store memory, signals, and data logged to the workspace using blocks.
Category: Data Import/Export
Settings
Default: On, out
On
All simulation data logged to the workspace is returned in the workspace as a single
Simulink.SimulationOutput
object.Specify the name of the variable used to store the
Simulink.SimulationOutput
object.Off
Simulation data is returned in one or more variables, depending on model and logging configuration.
Tips
When you log data using the To File block, the data logs to the specified file and does not appear in the single
Simulink.SimulationOutput
object.When you select Log Dataset data to file, the data that logs to the MAT file does not appear in the single
Simulink.SimulationOutput
object.Use the
who
function for theSimulink.SimulationOutput
object to view a list of the variables in the object.To use the Logging intervals parameter, you must select Single simulation output.
Programmatic Use
Parameter:
ReturnWorkspaceOutputs |
Value:
'on' | 'off' |
Default:
'on' |
Parameter:
ReturnWorkspaceOutputsName |
Type: string | character vector |
Value: valid MATLAB® variable name |
Default:
'out' |
Recommended Settings
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | No recommendation |
Safety precaution | No recommendation |