Hi,
I've been trying to get a new fMRI study working with a PsychoPy Coder script, using a
response box that pyxid identifies as a Cedrus RB-834. (The actual manufacturer of this box appears to be MRA, although I'm not sure if that makes a difference.)
In testing out my scripts, I've run in to two strange problems.
The first is that the box will work great for a while, but then at some point, it suddenly stops communicating with PsychoPy, and no more input comes in until I stop and reset the script. The amount of time it takes before that happens is variable...but clearly for an MRI study, we don't want that to ever happen. I did find an old thread asking about a similar issue, and the solution that Jon suggested was to download the pyxid library directly from Cedrus. I haven't had a chance to test this out at the scanner yet, but since that thread was from over a year ago, I'm wondering if anybody has any more information about this issue (i.e., what works, what doesn't seem to help, etc.).
Another issue is that the communication between the response box and PsychoPy seems to be fairly reliable on a Mac (with the exception of the issue noted above), but on Windows, it's very sporadic. Specifically, when running the pyxid.get_xid_devices() command, it seems to alternate between working and not working, every other time I try to communicate with the button box. I can get around this by running it on my Mac, but it still seems worth seeing if there might be a solution to this.
Finally, this button box seems to have a number of different modes for communicating with the computer, including XID for SuperLab, and ASCII for Presentation. Both of those seemed to work (although possibly the XID mode was a bit better, in terms of being less likely to fail sporadically). Does anybody have insight as to which is actually best for communicating with PsychoPy through pyxid?
I can try asking some of these questions on the Cedrus forums as well, but since people at the scan center using other programs don't seem to be having problems with the response box, it also seems like they could be related to how the button box interfaces with PsychoPy, so I'm hoping somebody here might be able to help.
Best,
Michael