This script gives the correct (according to my script) latency value in the feedback given to participants, but in the data file the latency is 100 ms too short. I do not know whether the data file is correct (that is, inquisit produces stimuli that last 100 ms too short) or whether the feedback and the values in the script are correct (which means that the data file is incorrect).Regards, Torleif <counter Scounter1a> / items = (600, 700, 800, 900, 1000, 1100, 1200, 1300, 1400, 1500, 600, 700, 800, 900, 1000, 1100, 1200, 1300, 1400, 1500, 600, 700, 800, 900, 1000, 1100, 1200, 1300, 1400, 1500, 600, 700, 800, 900, 1000, 1100, 1200, 1300, 1400, 1500) / select = noreplace / selectionrate = block </counter> <text svartekst> / items = ("How many deciseconds?") / fontstyle = ("Arial", 3%, false, false, false, false, 5, 0) / position = (50%, 50%) / txcolor = (0, 0, 0) </text> <text feedback1aTXT> /items = ("Correct answer is <% counter.Scounter1a.selectedvalue / 100 %>. Du answered <% openended.svarfirkant.response %> ") / fontstyle = ("Arial", 3%, false, false, false, false, 5, 0) / position = (50%, 50%) / txcolor = (0, 0, 0) </text> <trial firkant1> / correctresponse = (noresponse) / validresponse = (noresponse) / stimulustimes = [1 = firkant1] / validresponse = (noresponse) / timeout = (Scounter1a) </trial> <openended svarfirkant> / buttonlabel = "Svar" / charlimit = 2 / fontstyle = ("Arial", 3%, false, false, false, false, 5, 0) / linelength = 2 / mouse = true / multiline = false / position = (50%, 60%) / required = false / size = (3%, 3%) / stimulustimes = [1 = svartekst] </openended> <trial delay1> / stimulusframes = [1 = blank] / correctresponse = (noresponse) / validresponse = (noresponse) / timeout = (delaycounter1) </trial> <trial feedback1a> / correctresponse = (noresponse) / validresponse = (noresponse) / stimulustimes = [1 = feedback1aTXT] / validresponse = (noresponse) / timeout = (2000) </trial> <Block omgang1firkant> / trials = [1 = delay1; 2 = firkant1; 3 = svarfirkant; 4 = feedback1a] </block>
I'm sorry, these elements were left out:
<shape blank>/ color = (255, 255, 255)/ position = (50%, 50%) / shape = rectangle/ size = (120%, 120%)</shape><shape firkant1>/ shape = rectangle/ color = (0, 0, 255)/ erase = true(255, 255, 255)/ position = (50%, 50%)/ size = (15%, 15%)</shape><defaults>/ pretrialpause = 100</defaults><counter delaycounter1>/ items = (400) / select = noreplace/ selectionrate = block</counter>
I now realize that the problem recides in the defaults... Without the pretrialpause there is no error, so I assume inquisit incorrectly removes 100 ms from the latency. Or is the pretrialpause supposed to count as part of the timeout latency (that is, a 1000 ms stimuli is actually shown for only 900 ms, because inquisit also takes the pretrialpause into account?)
Based on a modification of your code that will actually run (yours doesn't because you did not include all required elements)
<counter Scounter1a>/ items = (600, 700, 800, 900, 1000, 1100, 1200, 1300, 1400, 1500, 600, 700, 800, 900, 1000, 1100, 1200, 1300, 1400, 1500, 600, 700, 800, 900, 1000, 1100, 1200, 1300, 1400, 1500, 600, 700, 800, 900, 1000, 1100, 1200, 1300, 1400, 1500)/ select = noreplace/ selectionrate = block</counter><text svartekst>/ items = ("How many deciseconds?")/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 0)/ position = (50%, 50%)/ txcolor = (0, 0, 0)</text><text feedback1aTXT>/items = ("Correct answer is <% counter.Scounter1a.selectedvalue / 100 %>. Du answered <% openended.svarfirkant.response %> ")/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 0)/ position = (50%, 50%)/ txcolor = (0, 0, 0)</text><trial firkant1>/ validresponse = (noresponse)/ timeout = (Scounter1a)</trial><openended svarfirkant>/ buttonlabel = "Svar"/ charlimit = 2/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 0)/ linelength = 2/ mouse = true/ multiline = false/ position = (50%, 60%)/ required = false/ size = (3%, 3%)/ stimulustimes = [1 = svartekst]</openended><trial feedback1a>/ correctresponse = (noresponse)/ validresponse = (noresponse)/ stimulustimes = [1 = feedback1aTXT]/ validresponse = (noresponse)/ timeout = (2000)</trial><Block omgang1firkant>/ trials = [1 = firkant1; 2 = svarfirkant; 3 = feedback1a]</block>
the data I get is
[...] trialnum blockcode trialcode [...] latency [...] stimulusitem1 . 1 omgang1firkant firkant1 . 600 . 0 . 2 omgang1firkant svarfirkant . 7637 . How many deciseconds? . 3 omgang1firkant feedback1a . 2000 . Correct answer is 6. Du answered 6
which seems perfectly correct.
Regards,
~Dave
"To understand recursion, you must first understand recursion." - Unknown Zen Master
halkjelsvik:Or is the pretrialpause supposed to count as part of the timeout latency (that is, a 1000 ms stimuli is actually shown for only 900 ms, because inquisit also takes the pretrialpause into account?)
Yes, timeout includes pretrialpause. This is explained in detail in the "How to Control Trial Duration and Inter-Trial Intervals" topic in the Inquisit documentation. A dry subject, but a must-read nevertheless.