Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How to save one data point at every 10th cycle?

Hello,

I am using LabVIEW 5.1 and PCI-6023E. In my application, I need to detect peak values from a load cell and save the one data point that detected at every 10th cycle. Do you know any ideal way to do this? Mine always save data values the whole time that the condition is true which is about 26 values; not one value as I want. Any help would be greatly appriciated.

Hao
0 Kudos
Message 1 of 3
(2,783 Views)
Hao,

I would set up a while loop to perform your acquisition. In the loop you can check the iterator "i" for multiples of 10. If i divided by 10 equals an integer number then save the datapoint read from the load cell.

Regards,
Justin Britten

Applications Engineer
National Instruments
0 Kudos
Message 2 of 3
(2,783 Views)
Hello Justin,

Thank you very much for helping me out. I did not state my question clearer last time. Actually, the cycle here is the number of life cycle of a valve that being tested; therefore, the iterator i can be any number when the valve's life cycle reaches its 1st, 11th, 21st....cycles. Do you know any other way to do this?

Thank you in advance
Hao
0 Kudos
Message 3 of 3
(2,783 Views)