Skip to Main Content Skip to Search
Product Documentation

setBlockSimState - Class: Simulink.SimState.ModelSimState
Package: Simulink.SimState

Set SimState of individual block

Syntax

setBlockSimState(x,'blockpath', blockSimState)

Description

setBlockSimState(x,'blockpath', blockSimState) sets the SimState of the block specified as blockpath.

Input Arguments

x

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

blockpath

The path to the block for which you are setting the SimState values

blockSimState

The SimState of the block specified.

Examples

newObj = setBlockSimState(obj, 'mymodel/chart', newChartState);

See Also

Simulink.SimState.ModelState.getBlockSimState

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS