LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to read a big Binary file??

II have a big binary file.(Size of file is not fixed every time but it can go upto 500 MB.)I want to read this binary file.I m using read file and wiring to byte stream type is an array of cluster.But when i run the program ,it shows "Labview memory full" and also "not enough memory" error.

Any help will be appriciated.

thanks

0 Kudos
Message 1 of 3
(2,782 Views)

Hi,

This is how i read big binary files.

I read it in chunks.

I read, something like say first thousand samples display on a graph/ array , then with an offset corresponding to those 1000 samples's size,  i read next 1000 samples and so on.

Thus, i traverse throught the whole file.

I have used this logic succesfully in quite a few of my applications.

Of course , you have to customize your binary file writing in the first place to read in this fashion and have to build a binary read application to read it.

To get an idea, have a look a the High speed data logger/reader example Vi given with labview examples(ps: this is in Traditional DAQ but can be modified to work with DAQ mx too)

Regards

Dev

 

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

Hi,

i found this thread discussed previously in the same forum

http://forums.ni.com/ni/board/message?board.id=170&message.id=152854&requireLogin=False

This will also give some pointers to the answer you seek

Regards

Dev

 

 

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