Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

measuring time interval between two digital events

Dear all,

I am reading a digital input from a NI USB 6225 DAQ board using measurement studio 7.1 with vb.net 2003. I have created my digital task and use the myDigitalTask_DigitalChangeDetection function to execute some code every time there is an event. What I would like to do is to measure the time interval between two events. I currently do it using Windows internal clock, but it doesn't work very well. Is there a way to use the daq clock? how?

best regards to everybody

nunzio

 

 

0 Kudos
Message 1 of 3
(3,594 Views)

You should use a gated counter.

MarcoMar

National Instruments Italy
0 Kudos
Message 2 of 3
(3,585 Views)

thank you for the reply. Both the counters on my board are already assigned to linear and angular encoders. Furthermore, I need to read also the time interval between events from different digital inputs to implement a shuttle test (a person running between two or more photoelectric gates). There is no way to use digital inputs and read a clock every time there is an event?

nunzio

0 Kudos
Message 3 of 3
(3,581 Views)