LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I want to read data continuosly from different files

In my test for 1 hour i am getting seven 45 Mb.txt files,each file has first column time stamp.then different

cannel data.I want to read data from a particular channel for a particular time duration from the start of the test( for eg8th min to 15 th minute),which may or maynot not be in a single file.It is not possible to load all of them into array.  

How this can be done

 

Thanks for your time

Certified LabVIEW Developer
0 Kudos
Message 1 of 5
(3,480 Views)

Hi mjaugustin

 

Do you need everything in one file or can you just search the files in turn until you find the start time stamp you are looking for, then read out until you find the stop stamp your are looking for?

 

If you want to bring all the data into one place you can open them up one at a time read the contents and use String Concatenate to produce one monster string. 

 

regards

0 Kudos
Message 2 of 5
(3,450 Views)

hi thanks for your suggestion

But when i open file it is showing memory full

 

Certified LabVIEW Developer
0 Kudos
Message 3 of 5
(3,440 Views)

Are you getting the memory full message after opening a number of large files?  It could be that your memory actually is full, in which case you could either add more memory, or you could break down the code into smaller sections.  Read a file, look for start time.  if not found, close the file.  This frees memory for the next file.

Most modern systems should have enough memory for reading 7 45MB files (315 MB).  Do you have other things running at the same time?  Look at your system monitor for memory usage.

 

- tbob

Inventor of the WORM Global
0 Kudos
Message 4 of 5
(3,438 Views)

Out of memory is strange!  Are you opening your files every time you want to read data and not closing them when you are done? 

 

If your system cannot open one of the files then I think you need to find an alternative approach.   Can you post your Block Diagram so we can get a feel for what is going on?

 

Regards

0 Kudos
Message 5 of 5
(3,418 Views)