This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Parameter Writer

Write to a model instance parameter

  • Library:
  • Simulink / Signal Routing


The Parameter Writer block changes block parameter values in a referenced model by writing to instance parameters belonging to a Model block referencing a model.

Use the Parameter Writer block with the Initialize Function and Reset Function blocks to respond to events. For example, an event could be reading the value from a hardware sensor, and then updating a model parameter based on the sensor value.



expand all

Parameter value written to a block.

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


expand all

Show the parameter owner block whose parameter value this block is writing. To change the parameter owner block, select a block from the Parameter Owner Selector Tree.

Programmatic Use

Block Parameter: ParameterOwnerBlock
Type: character vector
Value: '' | '<model path/block name>'
Default: ''

Block Characteristics

Data Types

Boolean | bus | double | enumerated | fixed point | integer | single

Direct Feedthrough


Multidimensional Signals


Variable-Size Signals


Zero-Crossing Detection


Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Fixed-Point Conversion
Convert floating-point algorithms to fixed point using Fixed-Point Designer™.