Voltecx is in beta. The macOS build comes first; Windows and Linux packages are still being tested.Beta. macOS comes first; Windows and Linux are still in testing. What's new
Documentation

Maximum (max)

Outputs the larger of two signals.

max

Component reference · 繁體中文

Group: Control · Kind: {"block":"max","kind":"control"}

When to use it

Use it for a lower bound that is itself a signal, such as a minimum duty from another block. Use Limiter for fixed bounds.

Pins

Pin Domain Meaning
in1 signal First input
in2 signal Second input
out signal The larger of the two inputs

Model

out = max(in1, in2), with direct feedthrough and no state. For three signals, chain two Maximum blocks. An unconnected input reads 0, so a negative signal against an open pin returns 0.

Common mistakes

  • An input left open reads 0, so a negative signal never shows through. Wire both inputs.
  • The output has a corner where the two inputs cross, so a loop that depends on the slope can chatter there. For a plain fixed bound, use Limiter instead.

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:max.


Generated by cargo xtask reference from the usage texts and parameter specs. Do not edit by hand.