Group: Forum Members
Posts: 2,
Visits: 11
|
I am new to Inquisit and receiving the above error message that I am not sure I understand after a bunch of sanity checks. The offending line of code seems to be here:
<picture primeS> / items = ("<%values.currShape%>") / size = (15%,15%) </picture>
The values.currShape item will change on each trial on the basis of ontrialbegin code like the following:
/ ontrialbegin = [values.randNum = rand(0,3); values.currWord=""; values.distType=2; if(values.randNum < 1){values.currShape=values.shape1; values.contingency=0;} else if(values.rndNumber < 2){values.currShape=values.shape2; values.contingency=1;} else{values.currShape=values.shape3; values.contingency=1;}]
The values.shape1, values.shape2, and values.shape3 file names are themselves set earlier with an onexptbegin randomization:
/ onexptbegin=[if (values.rndShape==0){values.shape1=values.shapeA; values.shape2=values.shapeB; values.shape3=values.shapeC;} else if (values.rndShape==1){values.shape1=values.shapeA; values.shape2=values.shapeC; values.shape3=values.shapeB;} else if (values.rndShape==2){values.shape1=values.shapeB; values.shape2=values.shapeA; values.shape3=values.shapeC;} else if (values.rndShape==3){values.shape1=values.shapeB; values.shape2=values.shapeC; values.shape3=values.shapeA;} else if (values.rndShape==4){values.shape1=values.shapeC; values.shape2=values.shapeA; values.shape3=values.shapeB;} else{values.shape1=values.shapeC; values.shape2=values.shapeB; values.shape3=values.shapeA;}]
I have confirmed that: valuesA, valuesB, and valuesC are being correctly assigned to values1, values2, and values3 (onexptbegin code above), and that currShape is correctly taking on a trial-by-trial basis one of these values based on a random calculation (ontrialbegin code above). I have also confirmed that picture objects can take code like:
items = ("<%values.[_something_]%>")
as long as the value does not change (???). I have also confirmed that literally identical code for text objects works exactly as intended, as in:
<text primeW> / items = ("<%values.currWord%>") / color = black </text>
The fact that it works for text but not pictures is particularly confusing. Am I trying to do something that is impossible in Inquisit? Note that trying to make multiple versions of the stimulus assignments with subjects = (1 of x) type code is definitely not feasible for this particular experiment where there are way too many combinations of stimulus assignments. It needs to be randomized somehow. Thanks for any suggestion.
|