I am conducting an experiment using foot pedals from psychology software inc. which are compatible with their serial response box. I have managed to get the SRB working with psychopy using coding instructions on another forum, but am just ordering the pedals now. Does anyone know if these pedals work with psychopy… I assume that they can simply be called using a number, sort of like how each of the buttons on the SRB have a unique identifier code (1, 2, 4, 8, 16). I’m just wondering if anyone has had any experience using such pedals with psychopy before and how they went about coding them into the software. The code I have now to use the SRB is below.
pstevents = pstbox.mostRecent()
if pstevents in (1,2,4,8,16):
responseTime = core.getTime()
rt = responseTime - stimulation_onset_time
button = pstevents
continueRoutine = False # Stop if we have a response.