BlockWerk Documentation
šŸ”€

Mux

Signal Routing

Combines multiple scalar input signals into a single output. The output is the sum of all connected inputs.

Simulate in BlockWerk

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

Simulate in BlockWerk →

Mathematical Model

y=[u1u2ā‹®un]y = \begin{bmatrix} u_1 \\ u_2 \\ \vdots \\ u_n \end{bmatrix}

Inputs & Outputs

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

Parameters

Parameters Label Type Default Description
numInputs Number of Inputs number 2

Usage Examples

InputsResult
u₁ = 3, uā‚‚ = 5y = 8
u₁ = -2, uā‚‚ = 4, uā‚ƒ = 1y = 3

Remarks & Best Practices

  • All inputs must be scalar values; vector inputs are not supported
  • Unconnected inputs are treated as zero
  • Useful for consolidating multiple sensor readings or summing contributions before a single processing block

Related Components

  • Demux: Split a signal into multiple outputs
  • Sum: Add signals with configurable signs