Group: Awaiting Activation
Posts: 19,
Visits: 148
|
Hello,
I want to use the 'include' element to run some demographic questions, questionnaires and IATs in one script. I have programmed it so that it all runs together fine until the end when the demographic section and questionnaires each repeat one extra time (the IATs do not) before the experiment ends. When they are run in their individual scripts they do not repeat like this so I'm likely doing something wrong in the 'include' part? Below is an example of the 'include' script where the demographic part repeats after the IATs:
<include> / file = "DemographicSurvey.iqx" / file = "IAT1.iqx" / file = "IAT2.iqx" / file = "IAT3.iqx" </include>
<defaults> / fontstyle = ("Arial", 3.5%) / screencolor = (255, 255, 255) / txbgcolor = (255, 255, 255) / txcolor = (0,0,0) / minimumversion = "4.0.0.0" / canvasaspectratio = (4, 3) </defaults>
<text error> / position = (50%, 75%) / items = ("X") / color = (255, 0, 0) / fontstyle = ("Arial", 10%, true) </text>
<data> / file = "DemographicSurvey.iqx" / file = "IAT1.iqdat" / file = "IAT2.iqdat" / file = "IAT3.iqdat" / columns = [date, time, subject, blockcode, blocknum, trialcode, trialnum, response, correct, latency, stimulusnumber, stimulusitem, expressions.da, expressions.db, expressions.d, expressions.percentcorrect ] / separatefiles = true </data>
<values> / sum1a = 0 / sum2a = 0 / sum1b = 0 / sum2b = 0 / n1a = 0 / n2a = 0 / n1b = 0 / n2b = 0 / ss1a = 0 / ss2a = 0 / ss1b = 0 / ss2b = 0 / magnitude = "unknown" / n_correct = 0 </values>
<expressions> / m1a = values.sum1a / values.n1a / m2a = values.sum2a / values.n2a / m1b = values.sum1b / values.n1b / m2b = values.sum2b / values.n2b / sd1a = sqrt((values.ss1a - (values.n1a * (expressions.m1a * expressions.m1a))) / (values.n1a - 1)) / sd2a = sqrt((values.ss2a - (values.n2a * (expressions.m2a * expressions.m2a))) / (values.n2a - 1)) / sd1b = sqrt((values.ss1b - (values.n1b * (expressions.m1b * expressions.m1b))) / (values.n1b - 1)) / sd2b = sqrt((values.ss2b - (values.n2b * (expressions.m2b * expressions.m2b))) / (values.n2b - 1)) / sda = sqrt((((values.n1a - 1) * (expressions.sd1a * expressions.sd1a) + (values.n2a - 1) * (expressions.sd2a * expressions.sd2a)) + ((values.n1a + values.n2a) * ((expressions.m1a - expressions.m2a) * (expressions.m1a - expressions.m2a)) / 4) ) / (values.n1a + values.n2a - 1) ) / sdb = sqrt((((values.n1b - 1) * (expressions.sd1b * expressions.sd1b) + (values.n2b - 1) * (expressions.sd2b * expressions.sd2b)) + ((values.n1b + values.n2b) * ((expressions.m1b - expressions.m2b) * (expressions.m1b - expressions.m2b)) / 4) ) / (values.n1b + values.n2b - 1) ) / da = (m2a - m1a) / expressions.sda / db = (m2b - m1b) / expressions.sdb / d = (expressions.da + expressions.db) / 2 / preferred = "unknown" / notpreferred = "unknown" / percentcorrect = (values.n_correct/ (values.n1a + values.n1b + values.n2a + values.n2b)) * 100 </expressions>
<values> /showsummaryfeedback = true </values>
<expt> / subjects = (1 of 12) / blocks = [1=Demographics; 2=iat1targetcompatiblepractice; 3=iat1attributepractice; 4=iat1compatibletest1; 5=iat1compatibletestinstructions; 6=iat1compatibletest2; 7=iat1targetincompatiblepractice; 8=iat1incompatibletest1; 9=iat1incompatibletestinstructions; 10=iat1incompatibletest2; 11=iat1summary; 12=iat2targetcompatiblepractice; 13=iat2attributepractice; 14=iat2compatibletest1; 15=iat2compatibletestinstructions; 16=iat2compatibletest2; 17=iat2targetincompatiblepractice; 18=iat2incompatibletest1; 19=iat2incompatibletestinstructions; 20=iat2incompatibletest2; 21=iat2summary; 22=iat3targetcompatiblepractice; 23=iat3attributepractice; 24=iat3compatibletest1; 25=iat3compatibletestinstructions; 26=iat3compatibletest2; 27=iat3targetincompatiblepractice; 28=iat3incompatibletest1; 29=iat3incompatibletestinstructions; 30=iat3incompatibletest2; 31=iat3summary ] </expt>
Any suggestions welcome!
|