Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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?