I have a problem I am hoping someone here has seen before. I have the ENC1001 encoder and the vint hub I am trying to get them to work consistently in python. The encoder stops reporting pulses through my callback function after 530-560 pulses, and does so consistently. I have tried changing the setDataInterval value and this changes how many pulses it takes before the failure point, but does not eliminate it. I have verified that no such issue is happening in the phidgets control panel, so the hardware itself is working fine. Has anyone else seen this issue before or have any advice on what may be worth trying? Python version is 3.11 and I'm on windows if it matters
No, with that code it works without any problems (though I did have to change the imports at the top to get it running). So it's probably something about python's garbage collection then and my callback.
Ahh, it was just falling out of scope and getting collected because my callback was outside the main loop. Entirely my fault, thanks for the help!