LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Two 2-State (T/F) Inputs to One 4-State Output: Case Structure Control

I would like to convert two 2-state (true/false) inputs to one 4-state output to specify a Case Structure state. I looked at the Enumeration and Ring Control components, but these only have one output port. Is there a two-port component that accomplishes this function?

0 Kudos
Message 1 of 2
(1,968 Views)

Use built array to create a boolean array with two elements, then use "boolean array to number".

 

Wire that number to the case selector and make cases 0, 1, 2, and 3 (corresponding to cases [0,0], [0,1], [1,0], and [1,1], resp.).

0 Kudos
Message 2 of 2
(1,967 Views)