Main Content

Data stores

R2026b

Option 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) | off
on

The 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 Dataset format.

By default, the property of the Simulink.SimulationOutput object that contains the logged data store data has the name dsmout. 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 the Simulink.SimulationOutput object. For more information, see Variable Names.

off

The 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