Replies: 1 comment 1 reply
-
|
Hi, |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I was working on implementing frame rate readings to viewers and turned into a funny behavior when testing. The code is quite simple (here: https://github.com/rgeneaux/PyMoDAQ/tree/fps_dev). First I made sure that the measured frame rate does not depend on the "refresh rate" parameter, only on how quick data is acquired.
Let's consider the DAQ0D Mock, which has a "wait time" attribute (which would be the exposure time of a real device).
If you set the wait time to 1 ms, you get an FPS of 64 Hz, much smaller than the theoretical 1 kHz.
But the stranger part is that if you move your mouse back and forth on the interface, the FPS goes up to >500 Hz! As if hovering the elements of the interface forced an acquisition or something.
Here it is in video: (with and without the FPS reading activated)
Recording_1680626748021.mov
It is less noticeable at lower speeds but still there: with wait time = 100 ms, FPS = 9.2 Hz without moving, and 9.8-9.9 Hz with moving.
Any idea of what causes that behavior?
Romain
Beta Was this translation helpful? Give feedback.
All reactions