Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

encoder and S series

Solved!
Go to solution

Do S series counters support quadrature encoders? If so, how to do connection between board and encoders?

My encoder is US digital HB6M with A,B channels, index, ground and +5VDC power.

0 Kudos
Message 1 of 3
(6,705 Views)
Solution
Accepted by topic author lwu

Iwu,

 

I would consult this Developer Zone article.  It specifically refers to E series but S series has the same STC chip (does not support Z index) that E series does.

 

See if the connection information in the middle of this document helps you.  Let me know if you have other questions!  If you do could you also include the S series board you have so I can tailor my information for that board.

Sincerely,
Jason Daming
Applications Engineer
National Instruments
http://www.ni.com/support
0 Kudos
Message 2 of 3
(6,695 Views)

I am using S series NI 6123

 

I tried the sample code for measure an encoder. code fragment:

--------------

DAQmxErrChk (DAQmxCreateTask("",&taskHandle));

DAQmxErrChk (DAQmxCreateCIAngEncoderChan(taskHandle,"Dev1/ctr0","",DAQmx_Val_X4,0,0.0,DAQmx_Val_AHighBHigh,DAQmx_Val_Degrees,24,0.0,""));

DAQmxErrChk (DAQmxCfgSampClkTiming(taskHandle,"/Dev1/PFI9",1000.0,DAQmx_Val_Rising,DAQmx_Val_ContSamps,1000));

------------------

But the error message is: Measurements: Selected physical channel does not support the measurement type.

Does this mean that NI 6123 doesn't support encoder meansurement?

 

Thank you in advance.

0 Kudos
Message 3 of 3
(6,662 Views)