LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Double data type

Solved!
Go to solution

I have a program that stores double precision numbers to a file in binary format. I know they get there OK as I can read them with another vi. However, if I try to read them into XL using a macro, I get garbage. I suspect that the byte order the two programs want is different. XL says it uses IEEE 64 bit numbers. What does Labview use? The value range seems to be the same.

0 Kudos
Message 1 of 2
(2,536 Views)
Solution
Accepted by topic author rossu

LabVIEW also uses IEEE format, but with the byte order reversed. For historical reasons, LabVIEW operates and stores data in big-endian format - Most Significant Byte first - whereas the native format on Windows is little-endian, LSB first. You can switch endianness by using Flatten to String with the endianness input set prior to writing your data.

Message 2 of 2
(2,531 Views)