Signal Conditioning

cancel
Showing results for 
Search instead for 
Did you mean: 

Data file refreshment

Hi,

I am trying to refresh (or overwrite)  data file every 30 min or 100 mb for my application as same file name. The " Write to measurement file vi."  doesn't have a file termination option under the Action/save to file. This application's has to keep running 20 to 30 days without stopping so the data file needs to dump its memory before exceeding Max memory. Unfortunately, I can't use save to series files(multi files) option for the project.

I wonder the  " Write to measurement file vi."  is good choice for the application. Do you have suggestions ?

 

Regards,

 

Download All
0 Kudos
Message 1 of 2
(5,703 Views)

Hi Jae,

 

It looks like you are running frequent acquisitions and immediately storing them to file. And the problem you are having is that eventually your file is going to be too large so you need to move to a new file every 30 minutes in order to keep the file sizes small enough. Is that right?

 

One idea that I had is that when configuring the express vi, from the "If a file name already exists" options to select "Use next available file name." This will make it so that every time you reset the "Write to measurement file" vi, it will start writing to the next available file name. 

 

You could put a case structure into your while loop and make it so that on every 1000th (or Nth) iteration of the while loop, you pass a reset to your "Write to measurement file" vi. So every N iterations it would create a new measurement file.

 

 
Hope that helps.

 

Daniel

Conditioned Measurements 

0 Kudos
Message 2 of 2
(5,690 Views)