Constant
SourcesThe 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)
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) → ProductRemarks & 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
- SignalGenerator: For time-varying signal sources
- Gain: For scaling signals by a fixed factor
- NumericDisplay: To verify the constant output value