Group: Forum Members
Posts: 6,
Visits: 49
|
Good morning,
For a research project with in which participants get presented two face stimuli at the same time I tried to implement the script. It worked until suddenly the program wasn't able to load the pictures of the faces anymore. I made sure that the script file is saved in the exact same folder than the pictures (.png) but still it is not working. Most of the time it gives the following error message: Unable to load the picture ''. Network Error: Protocol "" is unknown.
For the project we have 4 different faces with 2 different emotions and each picture is presented upright and inverted. Together this makes 16 different picture stimuli. I tried to implement the pictures like this:
<picture face1> / items = ("F1_F_1.png","I_F1_F_1.png","F1_N_1.png","I_F1_N_1.png","F2_F_1.png","I_F2_F_1.png","F2_N_1.png","I_F2_N_1.png","M1_F_1.png","I_M1_F_1.png","M1_N_1.png","I_M1_N_1.png","M2_F_1.png","I_M2_F_1.png","M2_N_1.png","I_M2_N_1.png") / transparentcolor = black / hposition = 50-(values.Hpcent_per_VD*2) / vposition = 50+(values.Hpcent_per_VD*15) / size = (values.Hpcent_per_VD*2, values.Vpcent_per_VD*2) </picture>
<picture face2> / items = ("F1_F_1.png","I_F1_F_1.png","F1_N_1.png","I_F1_N_1.png","F2_F_1.png","I_F2_F_1.png","F2_N_1.png","I_F2_N_1.png","M1_F_1.png","I_M1_F_1.png","M1_N_1.png","I_M1_N_1.png","M2_F_1.png","I_M2_F_1.png","M2_N_1.png","I_M2_N_1.png") / transparentcolor = black / hposition = 50+(values.Hpcent_per_VD*2) / vposition = 50+(values.Hpcent_per_VD*15) / size = (values.Hpcent_per_VD*2, values.Vpcent_per_VD*2) </picture>
Depending on which picture is shown as picture face1 I want to have specific faces as picture face2. We do not want all possible combinations. For each possible face1 stimuli there are 12 different possible face stimuli that can be shown as picture face2. I tried to use lists and if statements for this but here I am completely not sure about the best way to do it. My script seems to have errors in it but I am not experienced enough with Inquisit to find/ correct them. What I want is that on trial begin a random picture is presented as face1. In the if statement I want to check which face stimuli is presented as face1 and depending on this a face from a specific list is randomly chosen as face two.
<list faces> / items = ("F1_F_1.png","I_F1_F_1.png","F1_N_1.png","I_F1_N_1.png","F2_F_1.png","I_F2_F_1.png","F2_N_1.png","I_F2_N_1.png","M1_F_1.png","I_M1_F_1.png","M1_N_1.png","I_M1_N_1.png","M2_F_1.png","I_M2_F_1.png","M2_N_1.png","I_M2_N_1.png") / selectionmode = random / select = replace </list>
<list face1_UFF> / items = ("F1_F_1.png","F2_F_1.png","M1_F_1.png","M2_F_1.png","F1_N_1.png","F2_N_1.png","M1_N_1.png","M2_N_1.png","I_F1_F_1.png","I_F2_F_1.png","I_M1_F_1.png","I_M2_F_1.png") / selectionmode = random / select = replace </list>
<list face1_IFF> / items = ("F1_F_1.png","F2_F_1.png","M1_F_1.png","M2_F_1.png","I_F1_N_1.png", "I_F2_N_1.png","I_M1_N_1.png","I_M2_N_1.png", "I_F1_F_1.png","I_F2_F_1.png","I_M1_F_1.png","I_M2_F_1.png") / selectionmode = random / select = replace </list>
<list face1_UNF> / items = ("F1_N_1.png","F2_N_1.png","M1_N_1.png","M2_N_1.png","F1_F_1.png","F2_F_1.png","M1_F_1.png","M2_F_1.png","I_F1_N_1.png", "I_F2_N_1.png","I_M1_N_1.png","I_M2_N_1.png" ) / selectionmode = random / select = replace </list>
<list face1_INF> / items = ("I_F1_N_1.png", "I_F2_N_1.png","I_M1_N_1.png","I_M2_N_1.png","I_F1_F_1.png","I_F2_F_1.png","I_M1_F_1.png","I_M2_F_1.png","F1_N_1.png","F2_N_1.png","M1_N_1.png","M2_N_1.png") / selectionmode = random / select = replace </list>
<trial task> / pretrialpause = 100 / ontrialbegin = [picture.face1 = list.faces.nextvalue] / ontrialbegin = [if(picture.face1 == list.face1_UFF.items) { picture.face2 = list.face1_UFF.nextvalue } else if(picture.face1 == list.face1_IFF.items) { picture.face2 = list.face1_IFF.nextvalue } else if(picture.face1 == list.face1_UNF.nextvalue) { picture.face2 = list.face1_UNF.nextvalue } else if(picture.face1 == list.face1_INF.nextvalue) { picture.face2 = list.face1_INF.nextvalue } ] / stimulustimes = [0= fixationcross; 200=face1, face2; 3200=transient; 3250=blank, face1, face2, fixationcross; 5050 =blank] / validresponse = (200,203,208,205) / beginresponsetime = 5050 / recorddata = true / timeout = 6000 / posttrialpause = 100 </trial>
I hope it is more or less understandable what I want to implement. Maybe someone finds my error or can give me some hints how to implement what I just described. Thanks in advance!
|