Hi I've got some issues with the communication between my computer and rotary encoder that led to an error in the middle of experiments.
To add more details: it happened in a probabilistic fashion, that once every a few hundreds of trials across multiple animals, meaning if I run I 5 animals, 100 trials per animal, that I had this issue almost every day or other days. Neither refreshing the bpod twice before starting the protocol, nor restarting bpod before I start my experiment session worked. There are two possible solutions that I can think of: 1) completely discharge and reset rotary encoder every time before I start a protocol; 2) modifying the error message so that the protocol won't stop running immediately. Rather, display the error message as it is, but try to reset the communication between rotary encoder and my computation inside my protocol. I'm not sure if option 2 is straightforward to code inside the bpod protocol.
Any advice on how to properly solve this problem?
Below I am posting the exact error messages.
Thank you very much!
Trial#: 72
Error using
RotaryEncoderModule/ConfirmUSBTransmission
(line 597)
Error while updating Module
Wrap Point.
RotaryEncoderModule did not
return a confirmation byte.
Error in
RotaryEncoderModule/set.wrapPoint
(line 155)
obj.ConfirmUSBTransmission('Module
Wrap Point');
Error in ProbReward (line 88)
R.wrapPoint = 2160; %6
rotations
Error in run (line 91)
evalin('caller',
strcat(script, ';'));
Error in
NewLaunchManager>LaunchProtocol
(line 707)
run(ProtocolPath);
Error while evaluating DestroyedObject Callback.