Hello,

I am using a pedalboard with two pedals and one USB connection to collect behavioral responses through Matlab/Psychtoolbox (KbCheck function).

My issue is that the readout status of the pedalboard is incorrect when both pedals are pressed. The pedalboard status is reported correctly by KbCheck for single presses of either pedal, but if both pedals are pressed, only one pedal is detected as pressed. When I query my mouse with the same code while keeping both mouse buttons clicked down, the readout is correct (e.g. two button clicks are detected). Therefore, the issue seems to be hardware-related.

Does anyone has had a similar issue, and solved it? I would appreciate suggestions of brand/models of pedalboard whose readout has been tested and verified to work properly with PTB.

Thanks,

Francesco

% Code example

WaitSecs(2);

% two pedals are pressed and held down

[~, ~, keyCode] = KbCheck(PedalboardDeviceNumber);

length(find(keyCode))

ans =1; %should be ans=2

More Francesco Marini's questions See All
Similar questions and discussions