04-10-2015 03:38 PM
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.
Solved! Go to Solution.
04-10-2015 03:45 PM
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.