+x+xHello,
I am new to using inquisit.
I have done a simple reaction time task. I must have an error in my script but can't find it.
I have different types of pictograms that follow each other randomly - 10 times each - (normally it's good) and a cross appears between each pictogram.
The ITIs are random.
When I run my script it closes after the "demographic" block, and when I run the SRTT trial I only have the images without the cross....
I hope I was clear.... Thanks for your help
You need to provide all files the script requres to run, otherwise nobody will be able to reproduce this and tell you where the mistake is
(1) The crash is because you are referencing a stimulus that does not exist in the script.
<block exemple>
/ ontrialbegin = [
values.block = 0;
text.focus.textbgcolor = parameters.screencolor;
text.focus.textcolor = parameters.focuscolor;
block.SRTTblock.screencolor = parameters.screencolor;
]
/ trials = [1=instructions; 2-11 = noreplace(HighCalorieFood, LowCalorieFood)]
/ errormessage = true(
error,200)
/ responsemode = correct
</block>
You've instructed trials in <block exemple> to display an error message, a stimulus called "error" for 200ms. There is no stimulus called "error" defined anywhere in the script.
(2) The script has other issues.
<trial SRTT>
/ ontrialbegin = [
values.stiminterval = list.stimulusinterval.nextvalue;
trial.SRTT.insertstimulustime(item.HighCalorieFood, item.LowCalorieFood, values.stiminterval);]
/ stimulustimes = [0 = focus]
/ beginresponsetime = values.stiminterval
/ validresponse = (" ")
/ correctresponse = (" ")
/ ontrialend = [trial.SRTT.resetstimulusframes();]
/ branch = [return trial.SRTT;]
</trial>
This makes no sense. <item> elements are not stimulus elements and they cannot be inserted into trial's stimulus presentation sequence. Moreover, the syntax is all wrong and it's not even clear what this is supposed to do. insertstimulustime() has
two arguments -- the stimulus object to be inserted and the time it is to be inserted at -- not
three.
https://www.millisecond.com/support/docs/v6/html/language/functions/insertstimulustime.htm(3) Nowhere in the script do you actually run <trial SRTT>. Instead you set up and run these two trials:
<trial LowCalorieFood>
/ validresponse = (" ")
/ correctresponse = (" ")
/ stimulusframes = [1 = LowCalorie]
/ posttrialpause = values.stiminterval = list.stimulusinterval.nextvalue
</trial>
<trial HighCalorieFood>
/ validresponse = (" ")
/ correctresponse = (" ")
/ stimulusframes = [1 = HighCalorie]
/ posttrialpause = values.stiminterval = list.stimulusinterval.nextvalue
</trial>