Constant

This block is a constant value generator.

    Constant

Library

Activate/SignalGenerators

Description

The Constant block generates a constant value. The output size and type are defined by the block parameter.

Parameters

Constant_0

NameLabelDescriptionData TypeValid Values

C

Constant

This parameter is a matrix of any type. The size of the matrix gives the size of the regular output port. The constant(i,j) value is the component(i,j) value of the 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'
'complex'
'int32'
'int16'
'int8'
'uint32'
'uint16'
'uint8'
'boolean'
'string'
'inherit'

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
1

Ports

NameTypeDescriptionIO TypeNumber

Port 1

explicit

output

1

Port 2

activation

input

externalActivation

Advanced Properties

NameValueDescription

always active

no

Time Dependency = initially activated

direct-feedthrough

no

zero-crossing

no

mode

no

continuous-time state

no

discrete-time state

no