05-23-2022, 08:01 PM
Hi Josh,
I'm running into this error fairly often in Bpod sessions > ~150 trials... Any idea what might be the issue?
I am using the Hifi module to delivery sound stimuli, and am using the BNC input channel(s) to detect licking events (5V TTL) in a head-fixed mouse set-up with:
Bpod r2
Matlab R2021b with Psychtoolbox 3.0.18 installed
Ubuntu 20.04.4 LTS
Index exceeds the number of array elements. Index must not exceed 1.
Error in ArCOMObject_Bpod/read (line 395)
varargout{i} = uint8(obj.InBuffer(Pos
os+nBytesRead-1));
Error in RunStateMachine (line 101)
opCodeBytes = BpodSystem.SerialPort.read(2, 'uint8');
Error in RunStateMatrix (line 2)
RawEvents = RunStateMachine;
Error in Stage3_FixedLocation (line 300)
RawEvents = RunStateMatrix; % Run the trial and return events
Error in run (line 91)
evalin('caller', strcat(script, ';'));
Error in NewLaunchManager>LaunchProtocol (line 717)
run(ProtocolPath);
Error while evaluating DestroyedObject Callback.
I'm running into this error fairly often in Bpod sessions > ~150 trials... Any idea what might be the issue?
I am using the Hifi module to delivery sound stimuli, and am using the BNC input channel(s) to detect licking events (5V TTL) in a head-fixed mouse set-up with:
Bpod r2
Matlab R2021b with Psychtoolbox 3.0.18 installed
Ubuntu 20.04.4 LTS
Index exceeds the number of array elements. Index must not exceed 1.
Error in ArCOMObject_Bpod/read (line 395)
varargout{i} = uint8(obj.InBuffer(Pos

Error in RunStateMachine (line 101)
opCodeBytes = BpodSystem.SerialPort.read(2, 'uint8');
Error in RunStateMatrix (line 2)
RawEvents = RunStateMachine;
Error in Stage3_FixedLocation (line 300)
RawEvents = RunStateMatrix; % Run the trial and return events
Error in run (line 91)
evalin('caller', strcat(script, ';'));
Error in NewLaunchManager>LaunchProtocol (line 717)
run(ProtocolPath);
Error while evaluating DestroyedObject Callback.