Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

linear encoder count doubles going reverse than forward

Hi,

I have a quadrature linear encoder. I hooked it up with a PCI-MIO-16E-4 (aka PCI-6040E) according to the tutorial. Forward motion works great. But reverse motion have decrementation twice as much as it should. I have it hook as: A to PFI8, B to DIO6 and using counter 0. Can anyone please tell me what is wrong? Thanks alot!

Famus
0 Kudos
Message 1 of 3
(3,016 Views)

Hi Famus

 

 

Using quadrature encoder with PCI (i.e. not cDAQ) use connect Channel A to the source input of counter x (coutner 0) which is PFI8 as you said.

However, for B, you need to connect to the up/down line - im not sure if its DIO6. But check your connections and make sure you set the counter for simple edge counting and set the active edge to falling.

 

link - about your set up - maybe its vibrations?

 

Please reply soon,

Regards 

Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! 😉
0 Kudos
Message 2 of 3
(3,003 Views)

Hello Famus,

 

Thanks for your post!

 

I would like to ask if you are using digital lines 0-5 while also trying to use your encoder on line 6? If this is the case there might be a setting you will have to change to make this work correctly. Its not the same exact behavior but take a look at the following knowledge base that talks about this issue.

 

Using the Open Digital Lines on an E-Series DAQ Board when Taking Encoder Measurements

 

Let us know if any of this information helps you with your problem!

 

Cheers!

 

Corby_B

http://www.ni.com/support 

0 Kudos
Message 3 of 3
(2,997 Views)