Constant Block
Outputs a constant value
Open Constant in BlockWerk →# Constant Block
Description
The Constant block is a fundamental signal source that provides a steady numerical output value throughout the entire simulation. It has no input ports and one output port that continuously outputs the configured constant value.
This block is essential for providing fixed inputs to your system, such as setpoints for control loops, bias values, or test signals. The block produces identical output at every simulation step.
Mathematical Model
The Constant block implements:
y(t) = K
Where:
y(t)is the output signal at any time tKis the constant value (user configurable)
Parameters
value
The constant numerical value to output. Supports integers, decimals, and scientific notation (e.g. 1e-3).
Examples
Reference Setpoint
Provide a steady target for a controller:
Constant (value: 20) → PIDController → Boiler
Static Gain
Provide a gain value to a product block:
Sensor → Product
Constant (value: 0.5) → Product
Remarks
- Zero Inputs: Does not accept input connections.
- WASM Performance: Zero computational overhead after initialization.
- Persistence: Value remains identical throughout the simulation duration.
See Also
- SignalGenerator: For time-varying signal sources
- Gain: For scaling signals by a fixed factor
- NumericDisplay: To verify the constant output value