09-14-2006 11:00 AM
Read logic level from a digital I/O board that have inputs A,B,and I from a incremental shaft encoder to determine shaft position. The encoder output 200 steps per rotation. Therefore, the counter needs to have the capability to be set to 199 if the shaft rotates ccw three degrees from home.
The counter increments with a clockwise movement and decrements with a counterclockwise rotation.
I will greatly appreciate any suggestions
09-14-2006 11:09 AM
09-14-2006 11:22 AM - edited 09-14-2006 11:22 AM
Message Edited by Day on 09-14-2006 12:24 PM
09-14-2006 11:48 AM
I appreciate your email. The problem is how one can set direction flags. Should A be seen first I need to set a clockwise flag so I increment count whereas if B is seen before A I can set counterclockwise so count decrements when A is seen. I also need to set the counter to 0 if an I level is a "0" and A and B are high. My problem is remembering direction state. I thought of using shift registers but that won't work becuse I can't clear the shift registers.
Thank you so much for responding to my request.
Lloyd
09-14-2006 12:39 PM - edited 09-14-2006 12:39 PM
Message Edited by Day on 09-14-2006 01:39 PM
09-14-2006 01:00 PM
09-14-2006 02:31 PM
Kevin,
Thanks again for your input. No this isn't homework but and actual project {'working on. The rate of change is less than 200 transitions per second which I don't consider to demanding.
I'll attempt to implement your state suggestion but as you have probably surmised from my posting I'll new to LabView programming.
Lloyd