LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW to measure periodic time

Hi,

 

I am using labVIEW to measure the periodic time of a pendulum using a photogate. I would like to know how I would start a timer when the photogate is activated the first time, then stop the timer when the photogate is activated the third time. Any advice would be much appreciated, 

 

Kind Regards,

Patrick

 

0 Kudos
Message 1 of 4
(1,292 Views)

How is the Photogate interfaced with the computer?

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 2 of 4
(1,280 Views)
The photogate will interface with the computer using a 6211 NI DAQ
0 Kudos
Message 3 of 4
(1,269 Views)

I would recommend using a counter task, specifically a finite buffered period measurement with at least 3 samples.  From your array of periods, you'll want to ignore index 0, then sum indices 1+2 for your oscillation period.

 

Index 0 will be the arbitrary time from when you start the task until the first active photogate edge is seen.  In many apps, it's meaningless and should be ignored.

 

(Note:  The initial meaningless interval is measured on older device designs like your M-series board.  A newer X-series device would suppress this initial interval so then you'd simply sum indices 0+1.  This change was made as a non-negotiable "favor" so the behavior is present *all* of the time, but it turns out it's only actually helpful *most* of the time.)

 

 

-Kevin P

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
0 Kudos
Message 4 of 4
(1,259 Views)