Howdy, Stranger!

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

Supported by

[open] Joystick away/toward and RT

edited December 2014 in OpenSesame

Hi everyone,

For my first experiment with open sesame I'm creating an approach/avoidance test with a joystick.
Unfortunately I have few knowledge about python despite the fact that a friend of mine thought me the fundamentals.

Here is my protocole:
After being exposed to an odorant prime, the participant have to press a joystick button (2) to start the stimuli display
Then a set of simple geometric shapes (square and circle) appears on the screen.
For each of them the participant have to pull or push the joystick as response (counterbalanced of course).

I would like to log the response (0: pull ; 1: push) and the reaction time (between the stimulus display and the start of movement).

This is a first try to code this but it sends me an error message "ImportError: No module named libjoystick":

image

Any help will be very welcome.
Thank you very much

Adrien

Comments

  • edited 7:07PM

    Hi Adrien,

    Have you included a joystick item in your experiment? The libjoystick library isn't activated until a joystick item is prepared. You can insert one at the start of your experiment, e.g. to catch a buttonpress after showing an introduction. Alternatively, you could set the Run if to never (as it only needs to be prepared, not actually run).

    Good luck and happy holidays!

    Edwin

Sign In or Register to comment.