LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read large binary files over 1000 records

Solved!
Go to solution

I just re-tried setting the data type to I16 instead of array and it looks like it is the correct size now. I think I will be able to reshape it into a 64 by 300,000 array now.

 

Thanks for all your help!

0 Kudos
Message 11 of 13
(1,126 Views)

Okay.  I modified your VI.  The big problem is that you weren't accounting for the size of the header.

 

It was saved as a 2-D array, the 2-D array sizes were in the data file (I was able to unblock your file and open it). as 64 x 10,000.  So once the file pointer was set correctly after the header size, it could be read directly as a 2-D array.

0 Kudos
Message 12 of 13
(1,119 Views)

RavensFan,

 

If you do not connect number of elements to read, Read Binary file vi reads one element. And does not put it into array (simple data type) or array of clusters (2D array). You get rid of a lot of code and do not rewrite data array 3 times. See example in my post above.

 

0 Kudos
Message 13 of 13
(1,101 Views)