Simulink.SimState.ModelSimState class

Package: Simulink.SimState

Access SimState snapshot data

Description

The Simulink.SimState.ModelSimState class contains all of the information associated with a "snapshot" of a simulation, including the logged states, the time of the snapshot, and the start time of the simulation. To access these data for a block, use the getBlockSimState method or the loggedStates property.

Properties

description

Specify a description. By default, Simulink® software generates a string based on your model name.

loggedStates

The logged states are the continuous and discrete states of the blocks in a model. These states represent a subset of the complete simulation state (SimState) of the model.

Attributes:

dependent

snapshotTime

Time at which Simulink software takes a "snapshot" of the complete simulation states. This data is read only.

startTime

Time at which the simulation starts. This data is read only.

Methods

getBlockSimState Access SimState of individual Stateflow Chart, MATLAB Function, or S-function block
setBlockSimState Set SimState of individual Stateflow Chart, MATLAB Function, or S-function block

Copy Semantics

Value. To learn how value classes affect copy operations, see Copying Objects in the MATLAB® Programming Fundamentals documentation.

Was this topic helpful?