Howdy, Stranger!

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

Supported by

Go/No-Go Multiple Images

Hi everybody, I am new to OpenSesame and I am trying to build an Go/No-Go task for my thesis with multiple images, I used the script from an online shared task from James Barlett, but it does not adequate for what I am trying to build. I have multiple Go images and multiple No-Go images, how can I programme that? Also need to have feedback when there is error, meaning that when the participant does not answer to a Go stimuli or when it answers to a No-Go stimuli it gives the feedback adequate for the error. Can anybody help me with that? Thank you in advance!!!

Comments

  • Hi @AdrianaMartins ,


    First off, you don't have to open multiple discussions to get an answer. In fact, doing so will make searching the forum less clear for future visitors...

    But welcome to the forum and thanks for your interest in OpenSesame. :)


    Regarding giving participants feedback after every trial, something like the following should work:


    • Define the variable correct_response in the block_loop. Give this variable the variable "x" (or another keypress, depending on your design) on go trials. On no-go trials, in contrast to the example you used, I think the correct_variable should be set to "None" (instead of "timeout"), like so:


    • Next, you could append two feedback items to your trial_sequence, one for the incorrect-feedback warning, and one for the correct-feedback (if you want that one too)
    • Use the Run-if statements to determine which of the two feedback items should be run, depending on whether the variable "correct" has the value "0" or "1".


    I uploaded an example file.


    Regarding the multiple images: What are these images? Are the PNG/ BMP files? Or something that you draw on screen yourself? In any case, you will probable have to define the images in the same way as Stimulus is now defined in the block_loop, and use the square-bracket syntax to use them in your trial_sequence.



    Let us know if you have any further questions on this (but do provide us with more detailed information).


    Hope this helps!


    Good luck,


    Lotje

    Did you like my answer? Feel free to Buy Me A Coffee :)

  • Thank you Lotje for your help!!

    It is multiple png images, I have multiple images for go stimuli, and multiple for no-go stimuli, the ' O ' and ' X ' simbol is already edited in the image, or is it, probably, better to add on the OpenSesame?


    Thank you again for your help!!

    Kind regards,

    Adriana

  • Hi Adriana,


    To use variable images, you could do the following:

    • Add all the picture files to the file pool
    • Create a new column in the loop where you also defined the variables Letter, correct_response, etc. This column should contain the pictures that should be shown on each trial.
    • For example:
    • Next, go to the sketchpad that will be showing the stimulus.
    • Select the "Draw image element" (third black-and-white icon from the little toolbar)
    • Click at the center of the sketchpad and select one of the PNG files (doesn't matter which one)
    • Go to the script of the sketchpad and change the line drawing the image. Instead of the name of the .png file, you will use the square-bracket syntax, like so:
    draw image center=1 file="bunny.png" scale=1 show_if=always x=0 y=0 z_index=0
    

    Becomes

    draw image center=1 file="[picture_file]" scale=1 show_if=always x=0 y=0 z_index=0
    


    This procedure is explained in detail in the beginner's tutorial. It is worth to take a look at.



    The ' O ' and ' X ' symbols are already edited in the image, or is it, probably, better to add them on the OpenSesame?


    I think both methods are fine. If you already prepared the stimuli with letters on top, I would just go with these ones. :) As long as you know to which condition (go or nogo) each stimulus belongs.


    In this example, I wrote the letters on top of the images. Seeing a cat is "go", seeing a bunny is "no go".



    Cheers,


    Lotje

    Did you like my answer? Feel free to Buy Me A Coffee :)

  • Hi Lotje,

    Thank you so much for your help!!!

    Kind Regards,

    Adriana

Sign In or Register to comment.