08-06-2007 09:29 AM
08-06-2007 09:47 AM
Your E-series board is NOT capable of true quadrature decoding internally, but there ARE ways to use it with a quadrature encoder. There is a tutorial here giving you 2 possible methods. The first method could be implemented today, but has some significant drawbacks as outlined in the tutorial. The 2nd method is reliable but requires you to purchase or build some interface circuitry.
-Kevin P.
08-06-2007 10:08 AM
08-06-2007
10:22 AM
- last edited on
04-27-2025
03:44 PM
by
Content Cleaner
To the best of my knowledge, there's NOT a way to use the index pulse to reset the count on your E-series board. You'd need an M-series multifunction board or a 660x counter/timer board for that capability. About all you can do is use one of the index pulses as an "arm start" trigger for the counters so they both start when 1 encoder is at a known rotational position.
As to the code, I haven't used any E-series boards under DAQmx so can't speak with authority. I suspect you'd configure for an "edge counting" task and then set up a DAQmx Channel Property Node to specify that the "count direction" is "hardware controlled." I did a quick search on the site and here a couple links -- hopefully these user-submitted examples will give you a good starting point. Example A, Example B. Oh, and here's one straight from NI: Example C.
-Kevin P.