LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

read binary data file?

I'm very new to both labVIEW & it's environment.  I'm trying to read a binary data file created by the sample program "DAQsingleBufToDisk.c" from another C program that will analyze the data.  Can anyone point me in the right direction to some sample code that can show me how to do this?  Thanks!
0 Kudos
Message 1 of 3
(2,683 Views)
Hi,
   Are you trying to read this file which is created, I think, in LabWINDOWS/CVI rather than LabVIEW. Most of us here are not as familiar with LW as with LV so we won't be very familiar, nor have an easy way to look at, the file format created by that program. If you know the format, and are trying to read it in LabVIEW, three are binary file read functions under the file i/o section. They will read in the data, you will, knowing the format (from above) have to decipher it.
 
P.M.
 
P.S. If you aren't trying to read it in LabVIEW, there is a LabWINDOWS forum too.
Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 2 of 3
(2,677 Views)
If I understand correctly, you want to open / read a bin file which is created by some C program.  The binary file is actually data and not the compiled C code, right?
 
There are file open file read vi's for binary data.  When you want to display the data to the Front Panel, it is similar to displaying strings... however, right click on the display and select "Hexadecimal".  Experiment with the file open and read.  Display the data to see if it is what you expect. 
 
Once you have that going, continue to post questions within this thread.  This way you can target to solutions faster by having the full history.. 😉
 
I think those functions are within the advanced vi's of the file IO functions....  (Using CVI... No labview in front of me to confirm that... sorry)..
 
JLV
Message 3 of 3
(2,671 Views)