BlockWerk Documentation
C

Constant

Sources

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.

Simulate in BlockWerk

Interactive sandbox directly in your browser — zero installation, WASM-powered.

Simulate in BlockWerk →

Mathematical Model

The Constant block implements:

y(t) = K

Where:

  • y(t) is the output signal at any time t
  • K is the constant value (user configurable)

Inputs & Outputs

Direction ID Label Type Status
← Out out Value number Output

Parameters

Parameters Label Type Default Description
value Value number 1

Usage 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 & Best Practices

  • Zero Inputs: Does not accept input connections.
  • WASM Performance: Zero computational overhead after initialization.
  • Persistence: Value remains identical throughout the simulation duration.

Related Components