02-10-2009 07:47 AM
Greetings all. I recently created a VI that is used to measure battery voltages. Simple enough... it calculates the tolerances of the measurement based on the manufacturing date of the cell. The main portion of the VI is a while loop that continuously monitors the cell fixture and displays the voltaghe, pass/fail/reverse polarity, etc. Now I am being asked to save the data from each cell measured. The case lot number will be entered and become part of the data file name. There are 100 cells per box. So there will be one hundred entries per file.
I need to be able to grab just one data point from the continuous sampling that is going on in the while loop and build an array with it. After the case is finished, it will be saved as a spreadsheet file. I am having trouble grabbing just the one sample instead of a whole bunch per cell. I figure to compare two consecutiove measurements, and if they are within 2 millivolts of each other, then the reading is stable and grab the data. This need to be done within the main while loop.
Anysuggestions/ideas/help pls????
02-10-2009 08:53 AM
Hi Franco,
how do you measure the voltage? If you can present the voltage on your display, where is the difference between save this value?
If you get a waveform, then you can use the "Get Waveform Components" to get your data array, with index array you get one value.
Try to help.
Mike
02-10-2009 09:16 AM
02-11-2009 10:08 PM
Hello Franco,
What is the type of the data that is output from your read function? If it is a waveform like Mike said, then you can grab it's components in an array and just grab one or two elements out of the array. How many data points do you want to compare, do you want to get an average?
Regards,
Anna K
02-11-2009 10:13 PM
02-11-2009 10:16 PM
Can you post a screen shot of the data you are collecting? The data might be noisy - that can cause huge problems with things like simple level comparisons.
Mike...