Read a block state
Simulink / Signal Routing
The State Reader block reads the current state of a supported state owner block. When creating a library block with a State Reader block also include the state owner block.
Add a State Reader block to your model from the Simulink® Library Browser.
State Reader blocks can read state from these state owner blocks:
Discrete Transfer Fcn
Discrete FIR Filter
Conditional susystem blocks such as Enabled Subsystem, Triggered Subsystem, and Function-Call Subsystem.
S-Function with multiple discrete states.
Out— State value
State value read from a state owner block.
The dimension of the output is the dimension of the full state
vector. Refer to the Initial conditions parameter
for specific blocks. For example, for a Delay block
with a Delay length of
the State Reader block returns a state vector of length
State owner block— Show the state owner block
Show the state owner block whose state this block is reading. To change the state owner block, select a block from the State Owner Selector Tree.
|Type: character vector|