From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Evaluate Boolean with Numeric Input

Studying for CLAD exam and I'm stumped by an example using numeric inputs for the "or", "and", and "xor" boolean functions.  How do you logically trace dataflow in these instances?

 

Thanks.

 

 

LabVIEW 2016 - Windows 7

CLAD
0 Kudos
Message 1 of 3
(2,492 Views)
Maybe it would help you understand bitwise operations if you selected binary display. (10 OR 00 = 10)
0 Kudos
Message 2 of 3
(2,484 Views)

If you wired it up in LabVIEW, you are probably getting some negative numbers, right?

 

😄

 

0x00000010  = 2

0x00000000  = 0

 

XOR

 

0x00000010  = 2

 

XOR.not

 

0x11111101 =  253 (U8) = -3 (I8)

 

You'll also get -3 (I32).

 

The minus sign gets people confused...  😉

Message 3 of 3
(2,452 Views)