BlockWerk Documentation
↕

MinMax

Math

Outputs the minimum or maximum of all connected input signals. Useful for signal selection, protection logic, and envelope detection.

Simulate in BlockWerk

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

Simulate in BlockWerk →

Mathematical Model

y=min⁡(u1,…,un)ory=max⁡(u1,…,un)y = \min(u_1, \dots, u_n) \quad \text{or} \quad y = \max(u_1, \dots, u_n)

where u₁...uₙ are all connected input signals.

Inputs & Outputs

Direction ID Label Type Status
→ In in Input number Required
← Out out Output number Output

Parameters

Parameters Label Type Default Description
operation Operation select min

Usage Examples

  • Zie de ingebouwde voorbeelden in de handleiding voor een demonstratie van dit blok.

Remarks & Best Practices

  • Scalar only: All inputs must be scalar values; vector inputs are not supported
  • Unconnected: Unconnected input ports are ignored in the min/max calculation
  • Single input: With only one connected input, output equals that input for both modes
  • Performance: Negligible computational overhead; safe for high-speed simulation

Related Components

  • Comparator: Threshold-based comparison
  • Switch: Select between signals based on condition