MUX2x1

Simple Multiplexer test

Diagram

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

This example is a simple test of a single multiplexer component with 2 inputs prescribed by sources, one select input, and one output. After simulation until 15 s plot Mux2x1.in0, Mux2x1.in1, Mux2x1.sel, and Mux2x1.out. Compare the output signal with the input signals. If the select signal changes, the output switches to the other input.

Components (4)

Mux2x1

Type: MUX2x1

Input1

Type: Table

Select

Type: Step

Input0

Type: Table