Data stores
R2026bOption to log data for Data Store Memory blocks
Model Configuration Pane: Data Import/Export
Description
The Data stores parameter specifies whether the simulation logs variables associated with Data Store Memory blocks in the model. When you enable this parameter, the simulation logs all such variables during simulation.
By default, the data logs to a property of the
Simulink.SimulationOutput object with the name
dsmout. To access the logged data store data, use dot notation.
For example, when you use the default output variable name
out and the default data-store-logging variable name
dsmout, access the data store data using this command.
dsmout = out.dsmout;
Settings
on (default) | offonThe simulation logs all variables associated with Data Store Memory blocks to the workspace and the Simulation Data Inspector during simulation. The logged data always uses
Datasetformat.By default, the property of the
Simulink.SimulationOutputobject that contains the logged data store data has the namedsmout. To log data to a property with a different name, enter the name in the box. The name must be a valid MATLAB® variable name and must not match the name of any object functions or properties of theSimulink.SimulationOutputobject. For more information, see Variable Names.offThe simulation does not log variables associated with Data Store Memory blocks.
Programmatic Use
Parameter: DSMLogging |
| Type: string | character vector |
Value:
"on" | "off" |
Default:
'on' |
Parameter: DSMLoggingName |
| Type: string | character vector |
| Value: valid MATLAB variable name |
Default:
'dsmout' |
Version History
Introduced in R2010a