Constant

This block is a constant value generator.

    Constant

Library

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.

Matrix

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'
'inherit'

externalActivation

External activation

This parameter defines if the block receives an external activation or inherits. When External Activation is used, a additional activation port is added to the block. default is OFF.

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