[open] SR Box
  • MadjidMadjid
    533 karma points

    Hi Sebastian, i would use the SR Box "Cedrus" for collecting the response times in my experiment. I have defined the Allowed responses and time out in SR Box Plug-in, the device name is autodetect, but when my experiment runs, no responses were collected. i have changed the device name in to COM4. opensesame gives me the following message:Failed to open device port 'COM4' in libsrbox: 'could not open port COM4. thx Madjid

  • MadjidMadjid
    533 karma points

    Hi Sebastian, the problem is solved. in my computer, there war no COM4 in vevice Manager, but COM3. Now, i have one another problem. I have defined the buttons 1 and 3 as Allowed responses (1;3), but all the 8 buttons are active and collect responses. i don't know how i restrict the Allowed buttons only of 1 and 3 thx
    Madjid

  • sebastiaansebastiaan
    13104 karma points

    Good to hear that your first problem is solved. The way to define the allowed responses is by typing

    1;3

    in the field labelled 'Allowed responses'. Is this what you have done? If this doesn't work, could you please let me know what version of OpenSesame you are running?

    Cheers!

    ---
    Sebastiaan Mathôt - http://www.cogsci.nl/smathot

  • MadjidMadjid
    533 karma points

    exactly! i have typed 1;3 in the field "Allowed responses" in sr box plug-in. i have opensesame 0.26 Earnest Einstein thx!

  • sebastiaansebastiaan
    13104 karma points

    Hi Madjid,

    I'm afraid I cannot reproduce this problem. For me setting the allowed responses works as expected. Just to be perfectly sure, if you click on the 'Edit script' button, does it look something like this?

    set dummy "no"
    set allowed_responses "1;3"
    set dev "autodetect"
    set description "Collects input from a serial response box (Psychology Software Tools) or compatible devices"
    set timeout "infinite"

    Cheers! Sebastiaan

    ---
    Sebastiaan Mathôt - http://www.cogsci.nl/smathot

  • MadjidMadjid
    533 karma points

    Hi Sebastian, here the settings for my experiment:

    set dummy "no"
    set allowed_responses "2;1"
    set description "Collects input from a serial response box (Psychology Software Tools) or compatible devices"
    set dev "autodetect"
    set timeout "2000"

    but not only the keys 2 & 1 but also all the key are active and collect responses. I use the responsebox "Cedrus RB-830". Is it supported by opensesame? Thx Madjid

  • sebastiaansebastiaan
    13104 karma points

    Hi Madjid,

    The script looks fine, yes. I couldn't say whether the Cedrus RB-830 is completely compatible with the SR-box plug-in. I'd imagine so, but I don't have one to test. Also, it would be strange if OpenSesame recognizes the button presses, but doesn't respect the allowed responses list. But then again, I'd need a Cedrus box to actually test it.

    I looked on the Cedrus website, and they claim to offer support for Python. If the allowed responses are important, you could probably ask for a Python code snippet to communicate with the Cedrus box on their support forum.

    Two final remarks (probably obvious): First, you set the timeout to 2000, which means that you will get a timeout response after 2000ms, regardless of whether you have actually pressed a button. Second, there have been problems with the SR box plug-in in the past, so please make sure that you're running the stable 0.26 release (not a pre-release).

    Cheers, Sebastiaan

    ---
    Sebastiaan Mathôt - http://www.cogsci.nl/smathot

  • MadjidMadjid
    533 karma points

    Hi Sebastian,

    For our experiment, we have decided to use the Serial Response Box™ (Psychology software tools), that is compatible with OpenSesame. According to the Website of Psychology software tools, this SR Box requires the Software "E-prime", but we don't need an another presentationsoftware. We use currently OpenSesame. Could OpenSesame collect the responses without the E-Prime? Best regards Madjid

  • sebastiaansebastiaan
    13104 karma points

    Hi Madjid,

    Yeah, it's lame that they say that, because the SR Box will work fine with any type of software that can read from the serial port (or the USB port with the USB converter). OpenSesame is among them

    Is compatibility with OpenSesame the only reason that want to buy the SR Box (which is kind of expensive)? Because the Cedrus box will probably work as well with the code that they provide on GitHub. I actually came across this through your post on the Cedrus forum ;) But I can also understand if you don't want to invest too much time in getting the Cedrus box to work, of course.

    Cheers, Sebastiaan

    ---
    Sebastiaan Mathôt - http://www.cogsci.nl/smathot

  • froukehefroukehe
    217 karma points

    Besides input from a mouse or a keyboard, would it be possible to record responses from a USB gamepad, for example using the SR Box plugin?

  • lvanderlindenlvanderlinden
    4275 karma points

    Hi Frouke,

    Although we have no experience in collecting responses using a joystick or gamepad ourselves, other OpenSesame users have successfully implemented this. Please see the following topic:

    The SR Box plug-in is not suitable for this purpose.

    Cheers,

    Lotje

    ---
    Lotje van der Linden - http://www.cogsci.nl
Please sign in to add a comment
Copyright 2011-2013 Sebastiaan Mathôt // Photos originally from Lucnix and WikiMedia // Powerered by Vanilla

In this Discussion

Social

AJ Miranda says: Our eyes deceive... RT @newscientist Friday illusion: Make a dull diamond sparkle with the power of your mind http://t.co/91y7Dh7m

Latest on cogsci.nl

The Smartphone Revolution in psychological science: OpenSesame mobile // NewsSetting up Kubuntu 13.04 for research // TutorialThe black swan // OpinionMore