Hello everybody!
I'm currently having a small drawback when trying to interface the rotary encoder module to my experiment.
Similarly to what a past user was trying to implement, I'm trying to synchronize my rotary encoder to a fiber photometry recording. The rotary encoder is coupled to a wheel, and mice' forward locomotion triggers some states using the events' thresholds. For that, I'm using startUSBStream('UseTimer').
The problem I'm having right now is due to the fact that sometimes in the output data structure of the rotary encoder module, the time vector behaves weirdly, adding some huge value (4.0 e+3) at a random point in the vector, even though the trial itself lasts for 20 seconds. My guess is that the problem is due to fast rotation of the encoder, but I still need to quantify that.
I noticed that a similar problem emerges when using the startLogging() function for more than 35 minutes.
Let me know if you have any idea on how to address this problem.
Marco