Parameter Writer

Write to a model instance parameter

  • Library:
  • Simulink / Signal Routing

  • Parameter Writer block

Description

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.

Ports

Input

expand all

Parameter value written to a block.

Data Types: half | single | double | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64 | Boolean | fixed point | enumerated | bus

Parameters

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 | half | integer | single

Direct Feedthrough

no

Multidimensional Signals

yes

Variable-Size Signals

no

Zero-Crossing Detection

no

Extended Capabilities

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

Fixed-Point Conversion
Design and simulate fixed-point systems using Fixed-Point Designer™.