LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Waveform to binary file to read with other application

I'm streaming waveform data to a binary file to be read by a third-party waveform analysis software. When opening the file, however, the waveform data is unintelligible. I have read that Labview uses BigEndian coding, while most PC programs use LittleEndian coding; how do I convert from Big to Little and save the file for use by the outside program?
0 Kudos
Message 1 of 3
(2,826 Views)
Hello,

Please take a look at the knowledge base about how to write binary files in LabVIEW that can be read by other applications. At the end of this document there are a couple example VIs that will convert from Big to Little Endian and vice versa.

http://digital.natinst.com/public.nsf/websearch/97332426D63630EE862565070049FFBB

Regards,
Jyoti F
National Instruments
0 Kudos
Message 2 of 3
(2,826 Views)
This doesn't seem to take care of the whole problem. My third-party windows software needs the A/D values stored as 16-bit words, but I can't seem to store my acquired waveforms in this manner. I'm performing an AI mult pt acquire waveform, with output converted to binary and saved as a 16-bit file. Although my waveforms fluctuate between +/-5V, all I'm getting out is values that are either 1 or 0 (not, apparently, A/D values stored as 16-bit words...).
0 Kudos
Message 3 of 3
(2,826 Views)