12-03-2008 01:44 PM
I have a NI-6221 M series board that I am trying to setup to read an angular encoder signal form counter0. The problem is that I have a board that routes the encoder signals to pins other than the default encoder inputs. My A, B, Z goto PFI0,1,2 rather than the defaults. I would like to know if I can use the Daqmxconnectterms() function to hook them together and make it work ? I am using VB6 and NIDAQ 8.8.
Thanks everyone
12-04-2008 04:31 PM
Hi Buckeyes1997,
If I understand your question correctly, you can change the A,B & Z inputs from their default pins to other PFI lines. You should be able to use the Daqmxconnectterms() function as you mentioned, however, note that routing these lines will use some subsystems on your DAQ board and you will no longer be able to use Counter1. To see which routes you can connect as well as which subsystems will be used, you can take a look at the Device Routes tab for your device in Measurement and Automation Explorer (MAX).
12-04-2008 06:08 PM
Another function I would like to point you to are the following commands which you can use to set the input terminals for your encoder task:
DAQmxSetCIEncoderAInputTerm()
DAQmxSetCIEncoderBInputTerm()
DAQmxSetCIEncoderZInputTerm()