Constant

Outputs a fixed value for the whole run.

  • signal
  • Gradara equations
  • 1 port
  • 1 parameter
BlockConstantKindconstantLibrarySources

Description

Outputs a fixed value for the whole run. Use it for setpoints, offsets, and fixed inputs to other blocks.

Example

Arithmetic Sum, difference, product, quotient, minimum, and maximum of a ramp and a constant.

a = tb = 2a + ba − ba · ba / bmin(a, b)max(a, b)
In Gradara, select a Constant block and press F1, then choose Open example. It opens as a new model in My models, ready to run.

Also in this example:SumSubtractRampProductDivideMinMax

Ports

Outputs 1

  • y

    Output signal, equal to Value at all times.

Parameters

  • Valuevalue0

    The output value. Any real number.

Equations

Modelica
y = value

Implementation

The block’s Modelica model
y = value;

Assumptions and limitations

  • The value is fixed during a run. For a change at a set time, use Step.

Used in

These larger examples use it too. Open them from Examples in the app.

  • Data center cooling control
  • PMSM · Field-oriented control

See also

Select a block in Gradara and press F1 to open its page offline.