Documentation

State Reader

Read a block state

  • Library:
  • Signal Routing

Description

The State Reader block reads the current state of a supported 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 State-Space

  • Discrete-Time Integrator

  • Delay

  • Unit Delay

  • Discrete Transfer Fcn

  • Discrete Filter

  • S-Function (with one data type work vector declared as a discrete-state vector )

Ports

Output

expand all

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 N, the State Reader block returns a state vector of length [1xN].

Data Types: single | double | int8 | int16 | int32 | uint8 | uint16 | uint32 | fixed point

Parameters

expand all

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.

Command-Line Information

Parameter: StateOwnerBlock
Type: character vector
Value: '' | '<model path/block name>'
Default: ''
Was this topic helpful?