Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

quadrature encoder as Clock input?...

Greetings!
 
Can anyone give me some advice on using a quadrature encoder as a clock input to an m-series daq?
-Thus accepting A B and Z inputs..
 
My aplication calls for measuring an Analog input on every rising edge (from the Clock generated) , now I've been scanning up and down the forum -found some posts, mostly concerned with the E-series.
 
Some pointers will be appreciated!
0 Kudos
Message 1 of 4
(3,440 Views)

You're in luck.  Because the M-series boards support digital change detection (since DAQmx 8.0), you can actually set up a digital input task that's sensitive to both rising and falling edges of both A and B.  This in turn generates an internal "change detect pulse" signal which can be used as a sampling clock for other tasks such as Analog Input.

Here's a link to a posted example with more context found in the associated thread.  I've used this technique to get samples on every quadrature edge too, so I can vouch for it.

-Kevin P.

CAUTION! New LabVIEW adopters -- it's too late for me, but you *can* save yourself. The new subscription policy for LabVIEW puts NI's hand in your wallet for the rest of your working life. Are you sure you're *that* dedicated to LabVIEW? (Summary of my reasons in this post, part of a voluminous thread of mostly complaints starting here).
0 Kudos
Message 2 of 4
(3,433 Views)

Thanx!

spending some time on the threads... I happen to come across it -was wondering if this was the way to go. Maybe one last question, I've read abit about applying digital filtering to decrease jitter -does it hold true for the M-series? will it be needed -or is it a case of- if you need it use it...

Again, thanx for the advice!

0 Kudos
Message 3 of 4
(3,431 Views)

Hmmm, not sure how to comment.  When I think of "jitter", I think of an undesired variation in time intervals.  I wouldn't think that the digital filtering features would be a very natural way to address jitter.

It may be a moot point though.  Digital filtering can be configured for "PFI" pins on the M-series board, but those pins can't be used for correlated DIO -- only for software-timed static DIO.

I haven't found the need to use digital filtering in quite a while.  Need or lack thereof pretty much depends on the type of sensor signals you have and the kind of electrical environment you're in. 

-Kevin P.

CAUTION! New LabVIEW adopters -- it's too late for me, but you *can* save yourself. The new subscription policy for LabVIEW puts NI's hand in your wallet for the rest of your working life. Are you sure you're *that* dedicated to LabVIEW? (Summary of my reasons in this post, part of a voluminous thread of mostly complaints starting here).
0 Kudos
Message 4 of 4
(3,426 Views)