Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Quadrature clock converter

Currently i am using an encoder and i need to get the number of counts from the encoder.

I am currently using DAQ6024E card and i am also using it in conjunction with the LS7084 chip.

I want to get the number of counts from the encoder when the encoder rotates in the clockwise direction as well as in the anti clockwise direction ie; the up and down count.

Can anyone advise me on what is the program to write?

i am currently using lab windows.
0 Kudos
Message 1 of 2
(3,238 Views)

Leroy,

First, I would suggest that you review the following document:

Using Quadrature Encoders with E Series DAQ Boards

This should provide you with the theory behind the use of a quadrature encoder with an E Series device. It will also detail the required hardware connections. With regards to programming this application in LabWindows/CVI, I would suggest that you begin with the STCeventCount.C example. To modify this application so that it is capable of determining the direction of rotation, you will need to add the following function call:

iStatus = GPCTR_Change_Parameter (iDevice, ulGpctrNum, ND_UP_DOWN, ND_HARDWARE);

This func
tion call causes the direction of counting (up or down) to be controlled by the counter's up-down line.

Good luck with your application.

Spencer S.

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