Hi, I'm reading in counts off an encoder. The VI's I used are fine and I can spin the encoder at the fastest speed(2khz) and get the proper reading. My problem is when I compare the counts to trigger a AI read within the case.
I use a CASE statement. I set it to trigger at count 40...then 100...ect. If the motor spins slow enough it works fine. But go to a fast speed(2khz) and the CASE statement will miss that specific count. If I put a range on the case...say 39-41 then it works fine....but this might introduce other errors in my AI readings. I'm a beginner and can't come up with a better way to do this. Any ideas as to a better way?
TIA!
Cirrus