on to reload a zero on the z pulse while counting up AND reload the stripe count of my encoder (i.e 720) while counting down. I understand how the reload mechanism works in one direction but what about bi-directional??? I am using Traditional NI-DAQ & VB6I don't think that sort of behavior is supported in hardware for the 660x series. There's only one reload value which changes the count register without regard to the direction of approach. However, there may be a simple software solution. Let's look at what you have now:
In the '+' direction, the counter resets to 0, then counts up from 1 to 719 before resetting again. In the '-' direction, the counter resets to 0, then counts down from -1 to -719 before resetting again. You'd like it to count down from 719 to 1 before resetting.
Well, you could just conditally add 720 to the count whenever count < 0. Or you may prefer to use a remainder function on all the data without any conditional.
Sound like it could work for you?
My ow
n wishlist for hardware-driven reset of the count register is:
1. I'd like to do it in modes other than position measurement (especially edge counting mode).
2. I'd like an option like Z index reload phase == 'A any, B any' (meaning, reset the count regardless of whether A & B are high or low)
3. I'd like to select a RTSI signal or other counter output as the Z-index signal source rather than needing to hardwire it.
-Kevin P.
-Kevin P.
ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.