05-26-2009 08:43 AM
To all,
I have the VI created for the linear encoder and everything works fine, except when it comes to counting ticks. When the encoder moves in the positive direction from initial position, the ticks are counted correctly, but when I move the encoder in the negative direction from the initial position, the encoder immediately reads "4.29E+9". It continually reads this value moving backwards, and will not accurately measure position until the encoder has been moved an equal distance forward, back to its initial position, then it counts forward correctly. Any speculation as to why it reads this number? Any suggestions for fixing?
Thanks,
Owen
05-27-2009 12:31 AM
06-01-2009 10:16 AM
06-02-2009 02:27 AM
Could you please make a trial with an example from NI ?
LV Menu >> Help >> Find Examples... >> Hardware Input and Output >> DAQmx >> Counter Measurements >> Position >> Measure Angular Position.vi
You can easily adapt it for a linear encoder but even the original version will allow you to check your setup. Please read the NI-DAQmx help for the default terminals for your DAQ card.