LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can i separate 2(most significant digit ) from dingits like 200258,2001f4,2000Bc so on

hi
how can i can separate 2 (most significant digit) form digits like 200258 ,2001F4, 2000BC or of form 2XXXXX.i am getting output of this form where most significant digit 2 singnifies sign and rest gives the value of output(hexadecimal digits).
thank you
naveen
0 Kudos
Message 1 of 2
(2,046 Views)
Use the logical AND function. 200000 AND 2001F4 = 200000. To get the value section use 1FFFFF AND 2001F4 = 1F4. These logic functions accept numeric inputs and perform bit-wise logic functions on the arguments.

If I recall your earlier post correctly the next two bits after the sign bit determine the decimal point location. So the data value mask should be 7FFFF rather than 1FFFFF.

Lynn
0 Kudos
Message 2 of 2
(2,042 Views)