Example Code

VI Block - BCD7SEGMENTS 74190_Counter (0 to 9)

Code and Documents

Attachment

This VI simulates an IC 74LS190.

Changing the 4 addresses in Input, you will have in Output, in corrispondence with the binary number selected, the decimal equivalent, that is shown on an LED Display 7SEGMENTS.
B0 as the lowest Input value, follows B1, B2 and B3.
A as the lowest Output value, follows B, C... G.


Example:

With the binary combination 0101 you will have the number 6 (Decimal equivalent) shown on a LED Display 7SEG.

 

Follows the truth table:

B3   B2   B1   B0    A    B    C    D    E    F    G   

0      0     0      0      1    1     1     1    1    1    0

0      0     0      1      0    1     1     0    0    0    0

0      0     1      0      1    1     0     1    1    0    1

0      0     1      1      1    1     1     1    0    0    1

0      1     0      0      0    1     1     0    0    1    1

0      1     0      1      1    0     1     1    0    1    1

0      1     1      0      1    0     1     1    1    1    1

0      1     1      1      1    1     1     0    0    0    0

1      0     0      0      1    1     1     1    1    1    1

1      0     0      1      1    1     1     1    0    1    1

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