Constant
This block is a constant value generator.
Library
Activate/SignalGenerators
Description
The Constant block generates a constant value. The output size and type are defined by the block parameter.
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
C | Constant | This parameter is a matrix of any type. The size of the matrix gives the size of the regular output port. | ||
typ | Output datatype | This parameter defines the type of the output. Supported types are: Double, Complex, int8, int16, int32, uint8, uint16, uint32, boolean, inherit. | String | 'double' |
externalActivation | External activation | Specifies whether the block receives an external activation or inherits its activation through its regular input ports. When External Activation is selected, an additional activation port is added to the block. By default, external activation is not selected. | Number | 0 |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
Port 1 | explicit | output | 1 | |
Port 2 | activation | input | externalActivation |
Advanced Properties
Name | Value | Description |
---|---|---|
always active | no | Time Dependency = initially activated |
direct-feedthrough | no | |
zero-crossing | no | |
mode | no | |
continuous-time state | no | |
discrete-time state | no |