For the Quad08 Is Quadrature Mode set through CounterMode.Encoder or CounterMode.Totalize?
I have an encoder wheel attached to a rail car for measuring distance and I need to know when it's moving forward or backward.
Everything I have read tells me that CounterMode.Encoder is the method for using Quadrature but I have only been able to get the card to count both up and down when using CounterMode.Totalize specifically
Question
mick1221
For the Quad08 Is Quadrature Mode set through CounterMode.Encoder or CounterMode.Totalize?
I have an encoder wheel attached to a rail car for measuring distance and I need to know when it's moving forward or backward.
Everything I have read tells me that CounterMode.Encoder is the method for using Quadrature but I have only been able to get the card to count both up and down when using CounterMode.Totalize specifically
CounterMode mode = CounterMode.Bit32 | CounterMode.Totalize | CounterMode.ModuloNOn | CounterMode.UpDownOn;
When using Counter.Encoder I'm using
CounterMode mode = CounterMode.Encoder | CounterMode.EncoderModeX1 | CounterMode.EncoderModeBit32;
I did read the Edge Detection section in the docs but it seems to describe the methods for the UL and not the UL for .Net, I am using C#.
Any insight is appreciated, Thanks.
Link to comment
Share on other sites
7 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now