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 :
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'
var.correct_response = #'left'# ??
Thanks, S. RAY