Hi everyone,
I’m posting the full setup steps that worked for connecting a Cedrus Riponda (RB-x40) response box in PsychoPy, along with some version-related issues and fixes I encountered when moving to another desktop. I hope this might help anyone having issues with this process
Working Configuration: PsychoPy version: 2025.2.4
Riponda (Cedrus) Response Box Setup in PsychoPy
Install Xidron + Drivers
- Install Xidron software - https://cedrus.com/support/riponda/update-firmware.htm
- Install the Cedrus drivers- https://cedrus.com/support/riponda/index.htm
- Restart your computer after installation.
Install the Cedrus Package in PsychoPy
- Open PsychoPy >>Switch to Coder view >> Paste and run:
from psychopy.tools import pkgtools
pkgtools.installPackage('psychopy-cedrus')
- It may take a while. If it doesn’t run cleanly, close and reopen PsychoPy. Restart PsychoPy completely after installation.
Add the Cedrus Device in Builder
Open your experiment in **Builder view >> Click Experiment Settings (gear icon) >> Go to Devices >> Click Add Device >> Select Cedrus RB-x40 / XID device >> Name the device (e.g., ripondaRB) >> Under Keys allowed, enter the button numbers you want to use >> Save
Disable the Keyboard
Remove any Keyboard components from routines OR Ensure no keyboard responses are being recorded. Only the Cedrus device should collect responses.
Test the Box
Open Xidron to confirm button presses are detected >> Run a short PsychoPy test trial >> * Confirm buttons register correctly
Issues Encountered on Another Desktop
When testing on a different computer, I encountered version-related errors.
Error 1 (PsychoPy 2026)
...psychopy_cedrus\components\util.py", line 55, in writeXidButtonBoxCode
buff.writeOnceIndentedLines(code % inits)
KeyError: 'deviceLabel'
Possible Solution: Downgrade to PsychoPy 2025.2.4
Error 2 (PsychoPy 2025.2.3)
...psychopy\experiment\devices.py", line 203, in applyJSON
self.params[name].applyJSON(val)
KeyError: 'name'
Possible Solution: Delete the devices.json file located at: C:\Users\YOURNAME\AppData\Roaming\psychopy3. Restart PsychoPy after deleting.
Error 3 (PsychoPy 2025.2.4 – Opening Device Manager)
...psychopy\preferences\devices.py", line 62, in load
val['cls'].split(".")[:-1]
KeyError: 'cls'
Possible Solution: delete C:\Users\YOURNAME\AppData\Roaming\psychopy3\devices.json . Restart PsychoPy.