I am coding an AX-CPT task using PTB in MATLAB and while doing pilot testing, I am getting unusual RTs (Less than 100ms) when the participant is trying to do the task fast. Below are the details of the environment I am using:
PsychtoolBox version: ‘3.0.19 - Flavor: Manual Install, 16-Jan-2026 16:17:44’
Platform: Windows 11
Matlab Version: Matlab R2025b
Graphics detail: Intel UHD graphics 730
Code (Just the probe section where I am trying to record the RT):
Target letter code snippet:
%Probe letter
% Clear queue before probe
KbQueueStop;
KbQueueFlush;
% Wait until all keys are released
while KbCheck
end
Screen('TextSize',window,60);
DrawFormattedText(window,probeLetter,'center','center',magenta);
% Flip probe to screen and record TRUE onset time
tOnProbe = Screen('Flip',window,vbl+(waitframes-0.5)*ifi);
KbQueueFlush;
KbQueueStart;
while isnan(respProbe)
[pressed, firstPress] = KbQueueCheck;
if pressed
% Accept response only if it occurred AFTER probe onset
if firstPress(numpad1) > tOnProbe
respProbe = 1;
rtProbe = firstPress(numpad1) - tOnProbe;
elseif firstPress(numpad2) > tOnProbe
respProbe = 2;
rtProbe = firstPress(numpad2) - tOnProbe;
end
end
end
KbQueueStop;
Can anyone tell me if it’s an issue with how I have set up the probe timing recording or is it anything else?