Constant

| Vectorized | C |
in the palette on the schematic

The block forms a constant value at the output set by the user:

For the block operation you shall set the value of the constant k (by default, k=1).

Inputs

none

Outputs

  • output - the output that has the value of the constant vector.

Properties:

  • Value - the value k at the output of the block.
  • Data type (for code generation) - the data type of the output variable created when generating code for an external target system. The constant value (constant) when generating the code can be a real number (double type) or an integer (integer type) or a logical signal (boolean type).
  • Name - the name of the generated constant value, for reference.
The property k can be a vector: k = [k1,k2,…,kn], in this case, the output will also be a vector: y(t)=k

Parameters

none

Прим.:
  1. By default, the block generates a scalar output signal.
  2. Named properties can be set as local model variables (submodels) in a programming language script, as global project signals using the Tools → Signals main menu item, or as external project signals using an attachable signal database.

Related materials