LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Save one data point form multiple samples

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????

0 Kudos
Message 1 of 6
(2,912 Views)

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

Message 2 of 6
(2,900 Views)
I am using an Agilent 34401A DMM to take the measurements. The logic to do what I am trying to do is just eluding me. I feel like I am going in circles lol
0 Kudos
Message 3 of 6
(2,897 Views)

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

National Instruments
0 Kudos
Message 4 of 6
(2,877 Views)
Are you interested in the best/worst case of your measurements?
-Matt Bradley

************ kudos always appreciated, but only when deserved **************************




0 Kudos
Message 5 of 6
(2,873 Views)

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...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 6 of 6
(2,871 Views)