Thread: RB-740 with Psychopy2 builder View Single Post
Hisham
Founder
 
Join Date: Aug 2006
Location: San Pedro, CA
Hisham is on a distinguished road Posts: 1,197
Posted November 27th, 2017 #7
A developer has looked into this experiment for you. Since it uses pyxid, the RB has to be in response pad mode in order to be detected. If the Device Manager sees it as a keyboard it won't be picked up. However, that isn't the problem here.

The error youíre seeing is coming from the experiment itself, rather than pyxid or PsychoPy. Youíre seeing it because PsychoPy generated code incompatible with pyxid. Iím attaching a sample showcasing the exact problem with the code that was generated (it borrows from the experiment heavily). You should be able to run the *.py in PsychoPy Coder, and if there isnít anything else wrong, you should see output similar to this:

Devices found: [<ResponseDevice "Cedrus RB-834">]
Device <ResponseDevice "Cedrus RB-834"> found!
Press any key on the pad!
Got a key!
Got a key!
We still have <ResponseDevice "Cedrus RB-834"> , though!
3.4827 ERROR could not find a Cedrus device.

The problem is that the code attempts to scan for Cedrus devices multiple times and use the new scan results every time. Instead, you should only scan once and then refer back to the devices you found. Weíre working on an updated version of pyxid that works differently and avoids this issue, but it wonít be out until some time next year. In the meantime, someone will have to manually edit the Python code generated by the Builder to only refer to a single set of scan results.
Reply With Quote