LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Want to translate IEEE754 format to ASCII

Could you help me to translate a file wrote in IEEE754 format to ASCII
Thank you
0 Kudos
Message 1 of 3
(2,886 Views)
LabVIEW stores floating point numbers in IEEE 754 format. Under the File I/O>Binary File VIs there is Read From SGL File.vi that should work if they were stored with 32-bit IEEE single-precision format. if they were stored with 64-bit precision, you can modify the VI by changing all of the data types from SGL to DBL. If you need the numbers outputed to a text file, you could take the VI's output and wire it to the Write To Spreadsheet File function.
0 Kudos
Message 2 of 3
(2,886 Views)
The following webpage contains an example that converts a SGL to IEEE 754 binary format (and vice versa). You could modify this example to read your data and convert it to decimal format.

http://zone.ni.com/devzone/explprog.nsf/6c163603265406328625682a006ed37d/836a6ef704946f0a86256b3a005a99f0?OpenDocument

Chris_Mitchell
Product Development Engineer
Certified LabVIEW Architect

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