12-02-2003 01:18 AM
12-03-2003
09:36 AM
- last edited on
11-25-2025
06:30 PM
by
Content Cleaner
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.