Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Mouse and foot pedal response set up

Hi everyone!!!

I’m building a visual experiment in which participants see a series of pictures.
In every single trial, I deliver a tactile input to the subject when the visual stimulus is located in different spatial points. In every trial, the task is to respond as fast as possible by pressing a mouse OR foot pedal.
So, the questions are:
1. Is it possible to program an experiment with both hand & foot pedal set up?
2. If the dual setup is possible, do I use mouse_response for the hand and joystick_response for the foot? Or both using mouse_response?

Please advice.

Thanks
Isak

Comments

  • Hi Isak,

    This should be doable, but how depends on the device. More specifically, how do they connect to the computer? It could be, for example, that they work just like a keyboard, in which case you can use a keyboard_response, or that they work just like a joystick, in which you can use a joystick_response. Or perhaps they require some custom Python code.

    Because these are non-standard devices, this entirely depends on how they have been designed. So I would start by figuring out how the devices work, and then see how you can apply this in OpenSesame!

    Cheers!
    Sebastiaan

    There's much bigger issues in the world, I know. But I first have to take care of the world I know.
    cogsci.nl/smathot

  • Hi Sebastiaan,

    Thank you very much for your response! Yes, I found out that it could work like a keyboard.
    Beyond the response, I am desperately needing any assistance in building the block loop of my experiment sequence. I have watched numerous tutorial videos, but perhaps due to my zero experience in programming, I continuously have a difficult time creating my experiment.

    Basically, I have 96 pictures of athlete (Federer and Messi) that the participants will have to look and respond with either hand or foot pedal. My independent variables are an athlete (Federer or Messi), action (in-action or out-of-action; i.e., kicking a soccer ball or simply standing in a soccer field), and sport (congruent vs. incongruent sport; Messi playing soccer vs. Messi playing Tennis). I am perplexed of how to correctly set up the block loop and also have a randomized display of each picture through a sketchpad.

    Any assistance would be greatly appreciated...

    Sincerely,
    Isak

  • This sounds like a fairly straightforward full-factorial design, where all combinations of independent variables occur.

    Any assistance would be greatly appreciated...

    Why don't you first try to set this up yourself and see how far you come. :wink: Then, if you get stuck, you can of course post a question here with a detailed explanation of what you've done so far, what you want to accomplish, and why your current approach doesn't work.

    There's much bigger issues in the world, I know. But I first have to take care of the world I know.
    cogsci.nl/smathot

  • Thank you so much. Thankfully I think I have the full paradigm set up, but I am confused with one response feedback. If the participant has only 2000ms to respond to the picture stimulus, could I ask how I can set up the sketchpad response so that the error message ("No response") displays only if the subject fails to respond within that 2000ms?

  • I have tried this run if statement on the sketchpad sequence [correct] = 0 and [response_time] > [max_response_time] but doesn't seem to work...
    So far I have three sketchpad for correct and incorrect feedback, and lastly no response.
    For the correct I did [correct] = 1
    and for the incorrect I did [correct] = 0
    Those two works perfectly fine but I am having a very difficult time with the no response one.
    Any help would be greatly appreciated.

  • Those two works perfectly fine but I am having a very difficult time with the no response one.

    When a response time-out occurs, the response variable becomes None, as if the participant pressed a None key, so to say. You can check this with the following run-if statement: [response] = None.

    See also:

    Cheers!
    Sebastiaan

    There's much bigger issues in the world, I know. But I first have to take care of the world I know.
    cogsci.nl/smathot

  • Thank you so much! [response] = None worked perfectly!

Sign In or Register to comment.