Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

event timing with 6034E

I need to accurately time how long it takes between a counted number of pulse events using the 6034E.The number of pulses needs to be selectable and need hardware time accuracy. I thought I could use the buffered count feature of the STC and use the pulse events on the gate and an internal clock on the source, but I'm not sure how to set it up so that it will count x number of pulses and stop the timer. Haven't found an example in Visual Basic to refer to. Has anyone done this before and/or can you refer me to any examples
0 Kudos
Message 1 of 2
(3,113 Views)
Let me make sure I understand your application correctly. You have a certain number of pulses that will go by and you need to measure the time elapsed between pulses.

There should be an example program in your ...\NI-DAQ\Examples\Ctr directory called "STCsingleBufPeriodMeasure" that should do the trick. After "count" pulses the counter will stop. If you need to know the time between the first pulse and the last pulse, you can always just add up the times.

I hope this helps!

Russell

Applications Engineer
National Instruments
http://www.ni.com/support
0 Kudos
Message 2 of 2
(3,113 Views)