06-12-2006 05:40 PM
06-12-2006 07:50 PM
06-13-2006 08:37 AM
I'm not certain you'll be able to get exactly the behavior you're hoping for.
1. You should be able to get the counter to decrement with each transition of A or B, making 4 decrements per full cycle. In LabVIEW, one of the inputs for creating the position measurement channel is for specifying quad decode mode -- x1, x2, or x4. There must be a similar call available in the direct DAQmx calls you seem to be using, but I don't know anything about the specific syntax.
2. No, unfortunately there ISN'T a way to perform z-index reload regardless of A,B state. You have to specify a particular combo. In your app, you'd also need your z-index reload value to represent an integer multiple of A,B cycles. (If counting with "Ticks" for units, you'd need the z-index reload value to be a multiple of 4.)
-Kevin P.
06-13-2006 11:19 AM