State Writer

Write to a block state

  • Library:
  • Signal Routing


The State Writer block sets the state of a supported state owner block.

Add a State Writer block to your model from the Simulink® Library Browser.

State Writer blocks can write state to 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 )



expand all

State value written to a state owner block.

When writing to a state owner block with an input scalar, the scalar value is expanded to match the dimension of the state. All elements of the state are set to the same value.

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


expand all

Show the state owner block whose state this block is writing. 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?