LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Please somebody help- I don't understand binary files!!

I have binary files (.bin). They contain 2D arrays of data in I16 files. It does me no good to have a .bin file.

I HAVE to be able to view this data in a spreadsheet and I am getting very impatient because I have yet to figure out how to do this correctly. Everytime I've attempted to build a VI on my own, or edit the "High Speed Data Reader.VI", I don't get the numbers I need.

*What is a good way for me to get the binary file into a spreadsheet.
*Is there some other type of code/application I could link to in a VI to read and translate the .bin file?

I have Labview 6.1.
I am attaching a .bin file like what I need to convert.

THANKS!!!

Lauren
0 Kudos
Message 1 of 3
(2,576 Views)
Maybe this will work for you.
Message 2 of 3
(2,576 Views)
Hi Lauren,

There are a couple of ways to proceed.

You can open and read the file. It should be a string of ASCII representation of the values stored (weird characters). To look at them, place an indicator where you read the file. On the front panel, right-click the indicator and select HEX Display.


To manipulate the data, you can type cast it into as a integer... Then place it into a 2D array...


Better method:
In the Functions Palette, select File IO, then Binary Files vi, and place the "Read from I16 File.vi"
You can wire directly to the output called "2D array".
(much simpler than above). You can then wire this into "array to Spreadsheet String.vi"..

Actually, an example may be simpler to explain...
(especially on a Friday
;o)

See attached example:
Message 3 of 3
(2,576 Views)