Example Code

VI Block - MULTIPLEXER 4 Inputs_ 2 Addresses

Code and Documents

Attachment

This VI simulates a 4 Inputs MULTIPLEXER.

Changing the states of the 2 addresses values​​, and setting each of the 4 Inputs as HIGH or LOW, you will get a HIGH or LOW signal at the Output, in corresponding with the setting in the input.

B0 as the lowest Input value, follows B1, B2 and B3.

A0 as the lowest address, follows A1.

Y as the Output.

  Follows the truth table:

  B3 B2 B1 B0    A1 A0   Y

  0   0   0  1/0     0   0    1/0   

  0   0  1/0  0      0   1    1/0

  0 1/0  0    0      1   1    1/0

1/0  0   0    0      0   1    1/0

Mattia Perazzelli

Student at I.T.I. Guglielmo Marconi

Campobasso - Italy

Electronics and Telecommunications

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors