LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

"elapsed time counter"

I can read data fine from my instrument connected on my serial port. I want to measure the number of data samples i acquire per second from my instrument. At present i do it by enclosing the complete VI in a while loop and count the number of iteration in 10 seconds with the help of an external StopWATCH!!!. How can i do it in labview...???
0 Kudos
Message 1 of 5
(3,025 Views)
A number of ways but let's e.g. say that you kept the while loop then just get the time outside the loop and wire it into the loop..then after n iterations get the time within the loop and subtract the initial time.

Or skip the loop and use e.g. one-frame sequences to ensure (through data flow/data dependancies) that you get the time just prior to running the aquisition and then again just after...and find the difference. In this case you might want to use the milliseconds timer.

All the get time functions can be found on the time and dialog palette (subpalette of the functions palette).
0 Kudos
Message 2 of 5
(3,025 Views)
Hi Shakes,

Your question is answered at the following posting on the discussion forums:
Data Samples Counter

Feroz Patwa
Applications Engineer
National Instruments
0 Kudos
Message 3 of 5
(3,025 Views)
Thanks feroz. I got good help from the exchange 🙂 This forum is really benefitial in understanding the powers of labview for a rookie like myself. anyway thx again
0 Kudos
Message 4 of 5
(3,025 Views)
Thanx Mads, I really appreciate the time you take to try to help me here. Hope to get your support in future.
0 Kudos
Message 5 of 5
(3,025 Views)