LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DEC DPFP to IEEE 784 DPFP

I have binary data that is DEC DPFP. It is from ICD GPS 153 and I am trying to convert it to IEEE 784. 

Example: 14 49 74 9A 8F 0D 70 0D should be 152169.81332775712

 

DEC DPFP is 55 bit mantissa 8 bit exponent 1 bit sign

IEEE 784 is 52 bit mantissa 11 bit exponent 1 bit sign

 

I realize this is asking for the moon but if anybody has done anything like this please let me know.

0 Kudos
Message 1 of 2
(3,891 Views)

Hi tbone52,

 

Unfortunately I have not seen a conversion between these two standards before. Is the bit order as you displayed it in your above message, the mantissa first and sign bit last? Assuming the data you receive is in a hexadecimal format, you could convert it to an I64 decimal using the Hexadecimal String to Number VI and then convert it to a boolean array using the Number to Boolean Array VI. This would give you the binary representation of the number you originally read in, which you could then convert the the IEEE 784 standard.


-Jake B.

0 Kudos
Message 2 of 2
(3,863 Views)