12-01-2005 12:53 AM
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
12-01-2005 01:09 AM
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
12-01-2005 04:01 AM
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