Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Counting the number of quadrature encoded digital pulses using a general purpose counter.

Hello, ALL
I work with DAQPad-6020E, using Measure Studio for VC++.
TASK:
I try to count the number of quadrature encoded digital pulses using a general purpose counter. Exactly I need to make it with 2 counters (X and Y coordinates of optical mouse).
STEPS:
At first I try use sample of NI library. But function
iStatus = GPCTR_Set_Application( iDevice, ulGpctrNum, ND_POSITION_MSR);
return error (-10120 - "Invalid application used")!!!
I change nothing in sample (CTR\TIOquadEncoderPosMeasure), so what's up?
Wait impatiently for your answer,
Alexey Potanin, NI beginner...
0 Kudos
Message 1 of 2
(3,407 Views)
Hello,

E series cards have DAQ-STC timing controller. So you cannot use an NI-TIO based example with E series cards unless the examples are explicitly made for DAQ-STC/NI-TIO.

For encoder measurements with DAQ-STC, please take a look at the following links. It has example to do the Encoder measurements with DAQ-STC.

Encoder Measurements

Sincerely,
Sastry V
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(3,407 Views)