[correct] value changing in Go / NoGo task
I'm trying to create a Go / NoGo task where participants have to press 'space' for coloured shapes except for a Blue Square. The experiment seems to run ok except for a practice block where i'm trying to give feedback on right/wrong answers. For most trials everything runs OK but for the "No Go" trial (ie the Blue Square) if I give it a 'correct' response it will show both the 'correct' and 'incorrect' feedback messages. I edited the feedback items to show the value of the [correct] variable and it changes from '1' (on the 'correct feedback') to become '0' on the 'incorrect feedback'. Here's my sequence :
I've attached the experiment, I put the loop into sequential order so as to test it quickly. I can't figure out how the [correct] value is switching from 1 to 0 just on that single trial. Any help greatly appreciated!
Comments
Hi,
The problem is that the "press any key to continue" part of your correct statement requires a keypress that is then interpreted as a response and triggers a re-evaluation of the [correct] variable. So, what I would recommend you do, is to change the duration of the feedback items from keypress to some timeout, and add a separate sketchpad afterwards in which you ask for a keypress to continue.
Does that make sense?
Eduard
That makes a lot more sense now - all the 'go' trials were expecting a 'space' response so when I pressed the spacebar to the keypress for 'correct_feedback' the 'correct' var stayed at 1 and the 'incorrect_feedback' wouldn't run. I made the changes you suggested and it's working fine now @eduard
many thanks!