Howdy, Stranger!

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

Supported by

DEFINING THE “CORRECT RESPONSE” ON GO /NO-GO TASK, & DISPLAY FEEDBACK MESSAGE


DEFINING THE “CORRECT RESPONSE” ON GO /NO-GO TASK, & WRITING INLINE SCRIPT TO DETECT KEYBOARD RESPONSE, COMPARE WITH THE “CORRECT RESPONSE”, DISPLAY FEEDBACK MESSAGE :

Hello Researchers,

I am writing code in Open Sesame for implementing Go/No-Go Task. In the practice session there should be feed-back based on comparing user’s keyboard response with the program defined “Correct Response”. For the No Go trials the correct response would be ‘no key pressed’. How do I code for the response of ‘No Response’ – i.e. “No Key Pressed”? What would be the code for displaying the feed-back (correct/ incorrect) depending on the user’s keyboard response? What is the condition based on which one writes code in “Prepare” Tab, as different from writing code in the “Run” tab ?

I am including part of the code that is generating error:

if var.gonogo==1:correct_response = 'SPACE'

elif var.gonogo==0:

var.correct_response = #'left'# ??

if keyboard_response=correct_response:

feedbk_scrn=1

else:

feedbk_scrn=0

Thanks, S. RAY

Comments

  • edited January 2021

    Hi @SRayPsy1 ,


    If the correct response on a no-go trial is to not press any key, the value of the variable correct_response should be set to None. Also, in a no-go task, the duration of the keyboard_response item collecting the response should not be set to "infinite" (because then the experiment will wait forever on the no-go trials).


    I attached a simple experiment where the participant should press "space" if the fixation dot is green, and retain from responding if the fixation dot is red.


    I hope this helps!


    Cheers,

    Lotje

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

  • HI @ lvanderlinden,

    I thank you for your kind help.

    I pray you have a Healthy, & Happy New Year 2021.

    Thanks, & regards,

    S. RAY

Sign In or Register to comment.