12-14-2005 08:46 AM
12-14-2005
09:12 AM
- last edited on
08-18-2025
08:53 AM
by
Content Cleaner
Mike,
Your 6259 should be just fine if you're not already using both of its on-board counters. I've been very satisfied with the quadrature interface on both the M-series and the 660x series boards.
The default pinouts can be found in the M-series help. I *think* that the M-series allows you to use non-defaults also (unlike the 660x), but am not 100% sure. Note that A and B are the normal quadrature channels while Z is meant for the index pulse channel -- if your device produces one and you want to use it.
Try starting with the DAQmx examples for encoders to see how to configure and read instantaneous position. Then post back if you get stuck...
-Kevin P.
12-14-2005 09:27 AM
OK, with that being said would i just wire to the counter straight from the encoder. I plan on controlling the actuator based on this position measurement, will it update fast enough?. This is my first time working with NI hardware and just want to be sure that i have everything covered. Thanks for your reply
12-14-2005 10:41 AM
07-18-2012 02:13 PM
I am trying to use a quadrature encoder with NI-6259 DAQmx card.
Quad outputs NI-6259 inputs
A---------------> SRC of CTR0
B---------------> AUX of CTR0
I ----------------> GATE of CTR0
I have trouble figuring out what to use as the sampling clock, I am using DAQmx\Configure\timing.llb\DAQmx Timing(Sample Clock).vi
Any suggestions?
Thanks,
Roxanne
07-18-2012 02:26 PM
I'd generate a "dummy" task and then borrow its sampling clock to use on the encoder task. Options:
1. Generate continuous pulse train with other counter. Set encoder task to use 'CtrNInternalOutput' as the sample clock signal.
2. Create either finite or continuous AI or AO task. Set encoder task to use 'AISampleClock' or 'AOSampleClock'. If AI and continuous, configure it to overwrite unread samples. If AO, write an array of 0.0V to the buffer before starting.
-Kevin P