LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to take as many points as possible in an alloted time frame

Each time the voltage is automatically increased, like every 5 seconds or so, the values of the current are recorded.  Right now, I have it so that inside the voltage increase loop, the current is read 100 times say, and this fits inside the 5 second timeframe.  I would rather have it so that the  current is read taking up the whole 5 second allotment (or whatever number of seconds between the voltage increase I choose).  Can anybody help?  Thanks.
0 Kudos
Message 1 of 3
(2,308 Views)
It could be as simple as the attached example. There's a function called Elapsed Time. Pass it a target time and when it reaches the target, the Boolean output Time Has Elaspsed will go true. Wire this to a while loop's conditional terminal. You'll probably get one more reading after the target is reached so it the reading takes a while, you might want to determine how long a measurement takes and subtract that from the target.
0 Kudos
Message 2 of 3
(2,299 Views)
Thank you, I'll try it.
0 Kudos
Message 3 of 3
(2,294 Views)