02-01-2009 03:23 PM
I am attempting to use a USB-6211 with two quadrature encoders (one rotary and one linear). The rotary encoder has a Z-index that I would like to use.
When I look at the 6211 connector pinout, I only find 4 counter inputs but I need five counter inputs (Rotary A, B, and Z; Linear A and B).
Is there some way that I can use the Z-index in this application?
02-02-2009
12:56 PM
- last edited on
08-05-2025
01:44 PM
by
Content Cleaner
I attached the USB 621x User Manual that shows the counter pinouts on the device. Review the section on Default Counter/Timer Pinouts (pg. 8-30) to find how to connect the Z-index. The manual shows that it is pin 3/PFI2 for counter 0 and pin 2/PFI1 for counter 1. If you are unsure how to set everything up, the two manuals linked below discuss counters in more detail.
NI USB-621x User Manual
https://www.ni.com/docs/en-US/bundle/usb-621x-manual/resource/usb-621x-manual.pdf
DAQ M Series User Manual
02-02-2009 01:08 PM - edited 02-02-2009 01:11 PM
With 5 signals and only 4 inputs, there is not way to read all those signals for counter tasks. The closest with just using a 6211 would be to use an analog input an monitor the Z index, but you may not catch the pulse and would would have to use SW to correlate the data and set the Z index. I suppose if your angular encoder was only going in one direction you could do a count edges on A or B and use the Z index as a start trigger. A better bet would be to move to a card with more input lines, either a 6212, 6216 or 6218 if you're looking for a bus powered solution.
Hope this helps,
Andrew S
02-03-2009 10:17 AM
Jordan,
Thank you for your help.
I read through those documents a few days ago and I was not sure if I could use the Z-indez in my application above. Do you know something that Stilly32 and I are missing?
02-03-2009 10:21 AM
stilly32 wrote:would have to use SW to correlate the data and set the Z index.
Stilly32,
Thank you for your help.
What is SW?
02-03-2009 11:11 AM
02-06-2009 08:13 AM
I called tech support for help with this problem. To help the knowledge base on this forum, I have added tech support's response below.
This is Hunter from National Instruments and I wanted to get back to
on your issue with two encoders and the 6211. The device pinouts from
MAX show that the Counter 0 &1 A,B&Z inputs on the same PFI lines. The
lines listed in the table are only the default values, you can route the
inputs to any of the PFI lines.In order to set your own custom mapping use
a DAQmx Channel property node and select Counter Input»Position»A
Input»Terminal. I have attached a picture of how to create and configure
two counters, you will need 2 DAQmx tasks. Let me know if you have any
questions about this, I will be available tomorrow morning if you need to
call in or reply to this email anytime.
02-06-2009
06:15 PM
- last edited on
08-05-2025
01:45 PM
by
Content Cleaner
After reviewing the USB-621x user manual I want to reiterate what Stilly posted on this forum. He was correct in saying that the USB-621x has only four PFI Lines (PFI0-3) that are for inputs and four PFI Lines (PFI4-7) that are used for outputs. These lines are unidirectional so you can not change this functionality. This is stated in the USB-621x User Manual on Page 3-2. So you will not be able to directly connect these two encoders with 5 inputs. As was recommended above, the 6212, 6216, or 6218 would be good options to connect and use both counter tasks simultaneously.
USB-621x User Manual(refer to page 3-2)
https://www.ni.com/docs/en-US/bundle/usb-621x-manual/resource/usb-621x-manual.pdf