LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

bin data file

I have some binary files that contain eeprom hex code.

The data files are approx 8k bytes.

I am looking for away to put the hex data into a 1D array. Could someone point me in the right direction.
0 Kudos
Message 1 of 2
(2,742 Views)
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 1D 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 "1D array".
(much simpler than above). Same thing, you can put an indicator and display as HEX. That way you can compare with the values in a HEX-Editor.

8K files are no problem... 8MB files slow do
wn the process. You should be fine.

-enjoy-

JLV
Message 2 of 2
(2,742 Views)