LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

could someone explain the select comparison

Solved!
Go to solution
Right below the message body is 'Add Attachments'. Click on it. You'll then get a browse button.
0 Kudos
Message 11 of 16
(1,481 Views)

Thanks. This is what I have so far but I don't know what I am supposed to put in the T and F terminals.

0 Kudos
Message 12 of 16
(1,479 Views)
Solution
Accepted by topic author Laudie3a
The T and F terminals will accept any data type as long as they are both the same. You would choose a data type to match whatever you want to connect the output to. In other words, the T, F, and output have to be the same data types. Since you know what you want to connect to, you should now know what the inputs should be.
Message 13 of 16
(1,473 Views)

Ok. But I want the output to be the LED so that would mean the inputs would have to be a boolean as well and according to the picture that is not the case.

0 Kudos
Message 14 of 16
(1,468 Views)

The select comparison is like a gate.  If the condition is True, then pass through whatever is in the True input to the output of the function.  If the condition is False, then pass through whatever is wired to the False input to the output of the function.  It could be a datatype of any kind, a number, a string, a boolean.  Since you want the output to be a boolean, then you wire a boolean to the True input and a boolean to the False output.

 

However, in its simplest form, it is a ridiculous construction and is highlighted in an early post in the Rube Goldberg thread here.

Message 15 of 16
(1,466 Views)
Thank you everyone for your help! I got it and I think I understand now! I didn't realize there were boolean expressions as well!
0 Kudos
Message 16 of 16
(1,463 Views)