LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to store data while Labview can overwrite the unwanted data

Hi,
           My name is Panakalu. Currently I am doing a project using Labview. I need a help from anyone of you. I am in desperate need of help. Here is my problem.

                                  I want to acquire data from a arbitrary generator. Actually I have to store transients from a device. This process is going to run for atleast 8 hours. So I cannot store all the data acquired. This made me to I keep a threshold level for the acquired transients. So please any body tell me how I can overwrite the data which is below the threshold level and continue writing the data to hard disk when the data is above the threshold level. Also I have to store this data in different files. That is for every 5 seconds I have to store the data into another file. If the first 5 seconds data is stored in a file named data1.xls, then the next 5 seconds data should be stored into a file named data2.xls. Like this I have get 100 different files. I am using third party drivers for labview. My data acquisition card is from EXACQ TECHNOLOGIES.

                             Please help me in this matter. Your help in this matter is really appreciated.

Thanking You All

Panakalu           
0 Kudos
Message 1 of 2
(2,559 Views)
Take one step at a time. 
To write data to a file every 5 minutes, it might be best to accumulate the data into an array.  Use a while loop.  Collect the data inside the loop and check if it is above threshold.  If so, append it to the array.  Inside the loop you can check the time.  If 5 minutes have elapsed, exit the loop.  After exiting loop, write to a file.  A big loop must surround all this code to repeat it over and over.  The big loop can create the file name.  Use the i terminal, convert the number to a character, and conatenate the character to the basic file name, like "data" + "2" + ".xls".  Try this on you own, post your code, and we can continue to help you with problems.
Here is a template to help you get started:
 

Message Edited by tbob on 11-10-2005 12:06 PM

- tbob

Inventor of the WORM Global
0 Kudos
Message 2 of 2
(2,557 Views)