LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

automatic change file to store data

Solved!
Go to solution

Hi,

 

I have a stand-alone system working with 7 serial ports.


I need to store a huge amount of data ( 115.200 Kbaud / port ) because the system must keep working during a week.

In two days I have a file size of more than 500Mbytes. The problem is that I am storing the data in a .txt file and then, when i want to process the data, the notebook can´t open a file with so size.

 

I can´t find a way in which the vi can change in real time (itself) the file to store the data.
Maybe the way is create the 3-4 files before the while loop (in which i read the data) and then change the file in which i store the data, but I can´t find a way to do this. With the get_file_size.vi i know when i must change the file, but how do i to do this without get out the while loop? I think is necessary to keep the visa_read.vi working...

 

or maybe another format or way to store data is better?

 

It doesnt matter to lose data while changing the file.

 

Does anybody any idea?


Thanks

0 Kudos
Message 1 of 4
(2,906 Views)
Solution
Accepted by topic author norak

A quick one...

Message Edited by Pnt on 02-26-2009 10:12 PM
Download All
0 Kudos
Message 2 of 4
(2,899 Views)

Another option could be to have a case statement that, when the file is too large, closes the existing file and creates a new file? (see the attached screenshot)

 

Shaun

0 Kudos
Message 3 of 4
(2,891 Views)

 

 

Hi,

 

thank you for your ideas,

 

they really help me.

 

 

0 Kudos
Message 4 of 4
(2,813 Views)