Howdy, Stranger!

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

Supported by

[open] Monkeys and computer

edited October 2014 in OpenSesame

I started yesterday to use OpenSesame so I'm a real novice.
I want to propose a simultaneous matching-to-sample procedure to momkeys.

I use two screens: a touch screen for them + a screen for me to have some information as the reponse (correct or not), the latency, etc. So, first how differenciate the two screens with this software?
Secondly, I want that they touch the positive stimulus (a picture) and not, of course, the clipboard or a number on the touch screen (as proposed in the "Cats, dogs, and capybaras" tutorials).
Thirdly, is there a Python code to give them food automatically each time they touch the correct stimulus?

Kinds regards,
Lauriane

Comments

  • edited 4:30AM

    I use two screens: a touch screen for them + a screen for me to have some information as the reponse (correct or not), the latency, etc. So, first how differenciate the two screens with this software?

    This depends on your set-up. The easiest way would be to have an 'extended desktop'. That way you would just use a fullscreen window, and everything on the left (say) would appear on the experimenter screen, and everything on the right would appear on the monkey screen.

    Alternatively, you can create a second window and use that for the experimenter screen. For this, you will need to use the psycho back-end, because that's the only back-end that supports this. With the following code snippet, you will open a second window. To draw to this second window, you will need to use the PsychoPy API directly, as shown below.

    from psychopy import visual
    # Create a second window
    win2 = visual.Window(screen=1, units='pix')
    # Draw a grating on the second window and show it
    stim = visual.GratingStim(win2, size=128, color='green')
    stim.draw()
    win2.flip()
    

    See also:

    Secondly, I want that they touch the positive stimulus (a picture) and not, of course, the clipboard or a number on the touch screen (as proposed in the "Cats, dogs, and capybaras" tutorials).

    Maybe you could create a custom form?

    Thirdly, is there a Python code to give them food automatically each time they touch the correct stimulus?

    Sure:

    import give_monkey_food
    give_monkey_food.on_correct_response()
    

    ;-)

    Food dispensers are not standard devices, so you will need to find out how the food dispenser is connected and what kind of input it expects. Once you know that, it shouldn't be too difficult to write a Python script that does this.

    Cheers!
    Sebastiaan

  • edited 4:30AM

    I'm a OpenSesame and Python newbie who's running into timing problems. The goal is, to continuously read from a serial device and present a different stimulus every 5 seconds. After 5 stimuli or so, all the collected data is written to file.

  • edited 4:30AM

    @babaladla123 I'm afraid you'll have to be a lot more specific if you're hoping to get help. What exactly are you trying to, what do you have right now, and why doesn't it work as expected?

Sign In or Register to comment.