02-18-2013 11:47 AM
Hi,
I am using LabVIEW 2012 and there seems to be a problem with the formula node. The output of a simple not operation is not correct.
I have a U8 input whose value is 255. I apply a not operation(a = ~a;) and value returned by the formula node is also 255.
Is it a bug in the node or is there some other way to compute bitwise NOT?
Thanks,
Ritesh
Solved! Go to Solution.
02-18-2013 12:00 PM - edited 02-18-2013 12:05 PM
You need to use the Exclusive OR function. So what you really need is:
a = a^0xFF
EDIT: Digging some more, it is called a "bit complement". I would consider this a bug. I'm seeing the same with 2011.