LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

File format of binary file

Solved!
Go to solution

Using LV2010.  I have a program that saves data as a binary file.  The file is a cluster of floating point values and strings.  I need to write another program in VB.NET that can save/read these files, so I need information on the actual file format of the data.  Is there any documentation that describes how the file is saved?  Thanks.

0 Kudos
Message 1 of 3
(2,109 Views)
Solution
Accepted by topic author rickford66

Interesting. This question usually gets asked in the reverse direction with folks trying to decode into a cluster.

 

If you're using the WriteToBinary function, your data is being written as native datatypes in cluster order into the binary file. Since you're using a cluster, each string is being prepended with a length, which I believe is an I32.

 

This is described in the Help File for Write to Binary File. I think the string/array length thing trips people up a lot though.

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

I'll have to check into that.  Thanks.

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