LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to read a binary file written in LabVIEW 6.1 using VB ?

How to read a file saved in binay forrmat in LabVIEW 6.1 platform through VB.
Is there any code ?
 
Thanks
0 Kudos
Message 1 of 2
(2,316 Views)
Hello,

LabVIEW files stored in binary can take on just about any format that you choose, so there will not be a single piece of code that will give you what you are looking for.  You can use VB's standard file operation functions to read in a binary file created by LabVIEW, just as you would read in any other binary file.  See this page on Microsoft's web site for more information on the binary file read operation.  How you stored the data in the binary file will determine how you need to extract it from the byte array.  So, if the first element stored in the file was a 32-bit integer, you could extract an int from the byte stream to recover that piece of your data.  You would need to know in advance how the file was formatted in order to successfully retrieve the information.  If you need a reference for the VB functions, the microsoft link above will get you to some good information.
Cheers,

Matt Pollock
National Instruments
0 Kudos
Message 2 of 2
(2,293 Views)