getBlockSimState

Class: Simulink.SimState.ModelSimState
Package: Simulink.SimState

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

Syntax

blockSimState = getBlockSimState(x, 'blockpath')

Description

blockSimState = getBlockSimState(x, 'blockpath') returns the SimState of the block specified as blockpath. blockpath must be either a Stateflow Chart, MATLAB Function, or S-function block. For other types of blocks, see the loggedStates property of the Simulink.SimState.ModelSimState class.

Input Arguments

x

The x argument is a Simulink.SimState.ModelSimState object.

blockpath

The path to the block for which you are requesting the SimState values.

Output Arguments

blockSimState

The SimState of the block specified.

Examples

chartState = getBlockSimState(x, 'mymodel/chart')
Was this topic helpful?