03-04-2009 03:56 PM
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.
Solved! Go to Solution.
03-05-2009 11:41 AM
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.
03-11-2009 02:19 PM
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.