LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

can i use a counter input for a encoder feed back reading i 6014 daq card

i want to read a encoder input{A and B} using a 6014 daq card,i plan to use the 2 counter inputs given,can i use it and can any one tell me how.
0 Kudos
Message 1 of 2
(2,705 Views)
Hello,

Yes, it is possible to read encoder inputs with the 6014 card. In order to find more information about using encoders,

  1. Go to http://www.ni.com and click on Support at the top.

  2. In Option 3, under search select "KnowledgeBase" and enter "encoder" (without quotes) in the Keyword box.

  3. The first link returned should be How Do I Use a Quadrature Encoder with My Data Acquisition Board?.



That is a brief tutorial about using a quadrature encoder. The example provided uses Traditional NI-DAQ. See below for finding an updated example using DAQmx. For more information, follow the link at the bottom of the tutorial page, Using Quadrature Encoders with E Series DAQ Boards.

This document describes the differences between the 6014 and the E Series boards. Since the pinout for the 6014 and the E Series boards is the same, you can follow the tutorials for using quadrature encoders with E-series boards.

The user manual will be helpful in listing the pinout for your card. To find the manual,

  1. Go to http://www.ni.com and click on Support at the top.

  2. In Option 3, click "Product Manuals."

  3. Under Search, enter 6014 in the "Additional Keywords" box. A link to the NI 6013/6014 User Manual will appear. Appendix B lists the pinout.



Numerous examples ship with LabVIEW for illustrating various concepts. To find an example,

  1. In LabVIEW, go to Help, Find Examples.

  2. On the Browse tab, select Task.

  3. Open the "Hardware Input and Output" folder.

  4. Open the DAQmx folder.

  5. Since the encoder is read through the counter, open the "Counter Measurements" folder.

  6. Open the "Count Digital Events" folder and then open the "Count Digital Events.vi."



This example will provide an outline of what is necessary to read the encoder.

Happy coding,

Grant M.
National Instruments
0 Kudos
Message 2 of 2
(2,705 Views)