State Writer
Write to a block state
- Library:
Simulink / Signal Routing
Description
TheState Writerblock sets the state of a supported state owner block. When creating a library block with aState Writerblock also include the state owner block.
Add aState Writerblock to your model from the Simulink®Library Browser.
State Writerblocks can write state to these state owner blocks:
Discrete State-Space
Discrete-Time Integrator
Delay
Unit Delay
Discrete Transfer Fcn
Discrete Filter
Discrete FIR Filter
Integrator
Second-Order Integrator
Conditional subsystem blocks such asEnabled Subsystem,Triggered Subsystem, andFunction-Call Subsystem.
S-Functionwith multiple discrete states.
To configure an S-Function block as a state owner block, exactly one data type work vector must be declared as discrete state vector using ssSetDWorkUsedAsDState and named using ssSetDWorkName or ssSetDWorkRTWIdentifier in mdlInitializeSizes.
Ports
Input
Parameters
Model Examples
Block Characteristics
Data Types |
|
Direct Feedthrough |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
Zero-Crossing Detection |
|