LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Results don't display negative numbers

I have an application that accepts a 24 bit number and does some simple mathematical operations (see attached).  If number 3(a probe) receives a number lower than the constant that is being subtracted from it, which should result in a negative number, number 6(probe) displays a much larger, positive integer.
 
I'm sure that I must be missing something simple somewhere.
 
I thank you for your help in advance.
Ron Deavers, CLD
0 Kudos
Message 1 of 3
(2,653 Views)
Probe 3 (and the constant wired to it) are likely represented as an U32 (unsigned).  Unsigned numbers have a range starting from zero and cant go negative.  Change the representation to I32 instead.
0 Kudos
Message 2 of 3
(2,644 Views)
Thank you very much. I didn't realize the difference between unsigned integer and integer.
Ron Deavers, CLD
0 Kudos
Message 3 of 3
(2,636 Views)