Minimum (min)
Outputs the smaller of two signals.
Group: Control · Kind: {"block":"min","kind":"control"}
When to use it
Use it for an upper bound that is itself a signal, such as a current limit that depends on temperature. Use Limiter for fixed bounds.
Pins
| Pin | Domain | Meaning |
|---|---|---|
in1 |
signal | First input |
in2 |
signal | Second input |
out |
signal | The smaller of the two inputs |
Model
out = min(in1, in2), with direct feedthrough and no state. For three signals, chain two Minimum blocks. An unconnected input reads 0, so a positive signal against an open pin returns 0.
Common mistakes
- An input left open reads 0, so a positive signal is cut to 0. Wire both inputs.
- The output has a corner where the two inputs cross, so a loop that depends on the slope can chatter there. If the bound drops below the other path, the loop loses control without a warning.
Problems rules: pin.unconnected
Datasheet and sources
No datasheet applies. Both inputs come from your control design, and the output has their common unit.
Example
Open the example with the command file.openExample and the name demo:min.
Generated by cargo xtask reference from the usage texts and parameter specs. Do not edit by hand.