LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Measure Time between two pulses with Encoder

Hello,

 

I have an encoder connected to a DAQ NI 6212 to counter 0. The outputs A and B are connected to PFI8 and PFI10, and GND to D GND and + to +5V. For know I am geeting the position of encoder, so when I rotate the encoder I have the current position(like 90,180,360). My encoder does 15 pulses in a rotation.

 

How can I measure the period between two points, I think I can measure this by taking the time between two points and reset that timer at every pulse. I am new to labview and I am a little bit confused.

 

Thank you

0 Kudos
Message 1 of 2
(2,377 Views)

Period measurement is one of the primary abilities your board can perform in hardware.   Here's a basic example that can help get you started. 

 

Because your board has 2 counters, one could measure periods while the other measures position.  Getting the 2 tasks sync'ed will require a shared "Arm Start trigger", which you can find more info about here on the site now that you know a term to search for.

 

 

-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 2 of 2
(2,347 Views)