By Jakob - 1/31/2016
Hi
In my experiment I would like it if, when a participant reponds incorrectly, an error message appears under my stimulus. The only thing I cannot figure out is how to make the message appear without my stimulus itself disappearring immediatly. Ideally I want something like this: Stimulus appears -> if response = wrong -> stimulus + error message for 250 ms -> ITI -> next trial -> if response = right -> ITI -> next trial See underneath for part of my code. This only gets me the error message for 250 ms after a wrong response but my stimulus disappears. Is there any way to fix this? :
<text wrong> / font = ("Arial", -50, 700, 0, 34) / numitems = 1 / items = ("WRONG") / color = (255, 0, 0) / position = (50, 70) </text>
<text Stimulus_Target> / numitems = 6 / items = targetlist / select = noreplace </text>
<trial TARGET> / inputdevice = keyboard / validresponse = ("a", "l") / correctresponse = ("a") / stimulustimes = [0 = Stimulus_Target; 800 = slow; 1050 = slowerase] / responsetime = 0 / timeout = 1500 / responsemessage = ("l", wrong, 250) / posttrialpause= noreplace(500, 800, 1000) </trial>
Thanks in advance for any advice :)
|
By Dave - 1/31/2016
For it to remain on-screen, you need to set /erase=false for
<text Stimulus_Target> / numitems = 6 / items = targetlist / select = noreplace / erase = false </text>
For your ITI then, you need to set up and run a separate <trial>.
<trial ITI> / stimulusframes = [1=blankscreen] / validresponse = (0) / trialduration = noreplace(500, 800, 1000) </trial>
<shape blankscreen> / shape = rectangle / color = (white) / size = (100%, 100%) / erase = false </shape>
with
<trial TARGET> / inputdevice = keyboard / validresponse = ("a", "l") / correctresponse = ("a") / stimulustimes = [0 = Stimulus_Target; 800 = slow; 1050 = slowerase] / responsetime = 0 / timeout = 1500 / responsemessage = ("l", wrong, 250) / branch = [trial.iti] </trial>
|
|