By Théo - 1/28/2019
I can't solve a problem and I'll need your help. I created pairs of images (one negative and one positive or negative) in block conditionnement thanks to trial setup_appariement. But I would like to see these same pairs reversed in a second block)
example : block 1: image 1 with positive image images 2 with negative image
block 2: image 1 with negative image image 2 with positive image
Could you give me a lead so I can move forward because I have no idea at the moment....
that's a part of my code :
<trial setup_appariement> / ontrialbegin = [item.images_us.item=counter.setup_us.selectedvalue] / ontrialbegin = [item.images_cs.item=counter.setup_cs.selectedvalue] / trialduration = 0 </trial>
<block conscience> / trials=[1-8=noreplace(cc)] </block>
<block conditionnement> /preinstructions = (consignes_conditionnement) / trials = [1-8=noreplace(setup_appariement);9-11=noreplace(test)] </block>
<expt experience> / blocks = [1=evaluation1; 2= conditionnement; 3=conscience; 4=evaluation2] </expt>
|
By Dave - 1/28/2019
+xI can't solve a problem and I'll need your help. I created pairs of images (one negative and one positive or negative) in block conditionnement thanks to trial setup_appariement. But I would like to see these same pairs reversed in a second block) example : block 1: image 1 with positive image images 2 with negative image block 2: image 1 with negative image image 2 with positive image Could you give me a lead so I can move forward because I have no idea at the moment.... that's a part of my code : <trial setup_appariement> / ontrialbegin = [item.images_us.item=counter.setup_us.selectedvalue] / ontrialbegin = [item.images_cs.item=counter.setup_cs.selectedvalue] / trialduration = 0 </trial> <block conscience> / trials=[1-8=noreplace(cc)] </block> <block conditionnement> /preinstructions = (consignes_conditionnement) / trials = [1-8=noreplace(setup_appariement);9-11=noreplace(test)] </block> <expt experience> / blocks = [1=evaluation1; 2= conditionnement; 3=conscience; 4=evaluation2] </expt> You can set up the reversal in the same way you set up the original pairing. Instead of using selectedvalue, which samples a new value, simply use currentvalue, which returns the currently already selected value.
<trial setup_appariement> / ontrialbegin = [item.images_us.item=counter.setup_us.selectedvalue] / ontrialbegin = [item.itemelementforthereversepairing = counter.setup_us.currentvalue] ... / trialduration = 0 </trial>
|
By Théo - 1/29/2019
Thank you for your answer. I tried to use your solution but inquisit told me that the expression is invalid and that it contains an unknown element.
In addition, I would like to be sure that I must place this sentence in the trial already exist or if I have to create another one because I don't understand how block 1 will display the pairs in direction 1 and block 2 in the opposite direction (the two do not follow each other directly).
Thank you.
|
By Dave - 1/29/2019
+xThank you for your answer. I tried to use your solution but inquisit told me that the expression is invalid and that it contains an unknown element. In addition, I would like to be sure that I must place this sentence in the trial already exist or if I have to create another one because I don't understand how block 1 will display the pairs in direction 1 and block 2 in the opposite direction (the two do not follow each other directly). Thank you. Those are all questions I cannot answer in the abstract beyond what I already said. Please take the time and post some self-contained, complete -- i.e. runnable code -- and make sure to comment it properly, i.e. explain what every part is and what precisely you expect it to do. Also, if that code relies on any external files, such as images, please include those as well. Thanks.
|
By Théo - 1/29/2019
Sorry, that's my entier code :
<picture CSevaluation> /position = (50%,20%) /size = (50%,50%) /items = CSimages </picture>
<item CSimages> /1= "B1.jpg" /2= "B2.jpg" /3= "B3.jpg" /4= "B4.jpg" /5= "B5.jpg" /6= "B6.jpg" /7= "B7.jpg" /8= "B8.jpg" </item>
<likert evaluation> /numpoints = 11 / anchors = [1="Très déplaisant";11="Très plaisant"] /position = (50%,50%) / stimulusframes = [1 = CSevaluation] / anchorwidth=5% </likert>
<block evaluation1> / preinstructions = (introduction, evaluation) / trials = [1-8=noreplace(evaluation)] </block>
<block evaluation2> / preinstructions = (evaluation) / trials = [1-8=noreplace(evaluation)] </block>
<picture cs> / items = images_cs /select = current(us) /position = (50%,90%) /size = (30%,30%) </picture>
<picture us> / items = images_us /select = noreplace /position = (50%,50%) /size = (100%,100%) </picture>
<shape rectangle> / shape = rectangle / color = black /size = (100%,100%) </shape>
<item images_us> </item>
<item images_cs> </item>
<counter setup_us> / items = ("3500.jpg", "9410.jpg", "9001.jpg", "2722.jpg","8185.jpg", "8030.jpg", "5000.jpg", "2370.jpg") / select = noreplace / selectionrate = trial </counter>
<counter setup_cs> / items = ("B1.jpg", "B2.jpg", "B3.jpg","B4.jpg", "B5.jpg", "B6.jpg", "B7.jpg","B8.jpg") / select = noreplace / selectionrate = trial </counter>
<trial setup_appariement> / ontrialbegin = [item.images_us.item=counter.setup_us.selectedvalue] / ontrialbegin = [item.images_cs.item=counter.setup_cs.selectedvalue] / trialduration = 0 </trial>
<trial test> /stimulustimes = [1500=rectangle; 1= us,cs] /timeout = 2500 </trial>
<caption attention> / caption = "ATTENTION, si vous ne vous en souvenez pas répondez à cette question :" / txcolor = red /position = (20%,65%) </caption>
<radiobuttons cc1> / caption = "Cette figure était-elle présentée avec une image plaisante ou déplaisante ?" / options=("Plaisante", "Déplaisante") / required = False /position = (20%,50%) </radiobuttons>
<radiobuttons cc2> / caption = "Trouvez-vous cette figure plaisante ou déplaisante ?" / options=("Plaisante", "Déplaisante") / required = False /position = (20%,70%) </radiobuttons>
<surveypage cc> / fontstyle = ("Verdana", -16, true, false, false, false, 5, 0) / questions = [1=cc1; 2=attention; 3=cc2] / stimulusframes = [1=CSevaluation] </surveypage>
<block conscience> / trials=[1-8=noreplace(cc)] </block>
<page evaluation > Vous allez maintenant voir plusieurs figures géométriques apparaitre à l'écran. ^^Vous devrez noter ces figures géométriques sur une échelle de 1 à 11, indiquant si vous les trouvez plus ou moins plaisantes ou déplaisantes. ^^Ne passez pas trop de temps sur cette tâche, et répondez de la manière la plus spontanée possible. </page>
<page introduction> Lâétude porte sur des processus de perception de différents stimuli. ^^Elle comprend trois phases. Dans la première, vous devrez évaluer une série de figures géométriques. ^^Dans la deuxième, vous verrez diverses photographies apparaitre à lâécran. ^^Elles seront présentées dans un ordre aléatoire (vous nâavez pas à les mémoriser) et dans la dernière, vous évaluerez de nouveau les mêmes figures. </page>
<page consignes_conditionnement> Vous allez voir apparaitre plusieurs paires d'images à l'écran, vous n'avez pas a les mémoriser mais vous devez les regarder attentivement. </page>
<block conditionnement> /preinstructions = (consignes_conditionnement) / trials = [1-8=noreplace(setup_appariement);9-72=noreplace(test)] </block>
<expt experience> / blocks = [1=evaluation1; 2= conditionnement; 3=conscience; 4=evaluation2]
the experience is currently composed of 4 blocks : 1 : evaluation 2 : conditionnement 3 : conscience 4 : evaluation2
the "evaluation1" block asks participants to rate images (i.e., CSimages) using lickerts scales (i.e., lickert evaluation).
the "conditionnement" block displays an image on the screen background (see setup_us) and superimposed on it another image (see setup_cs). These pairs of images are first matched in the packaging block via the trial setup_pairing, then they are randomly played 64 times. Each pair is presented 8 times. It turns out that in this block the images are randomly matched to each other. The images at the back of the screen have a positive or negative emotional valence (i.e., the us) and those at the bottom of the screen are neutral (i.e., the cs). What I would like to know is how to make sure that in the conditionnement block the pairs remain randomly made but that in a new counter-conditioning block, the neutral images (i.e., cs) are matched with images of the background (i.e., us) of opposite valence. Basically that B1.jpg (which is a cs) randomly matches 3500.jpg (which is a negative us) during the block conditioning then that during the block counter_conditioning, it matches again randomly but with a us of the opposite valence, here negative so 9410.jpg for example.
The conscience block presents the images evaluated during the evaluation1 block and asks two questions of the raddiobuttons type (see surveypage cc).
The evaluation1 block has the same characteristics as the evaluation2 block.
Thank you for your help.
|
By Dave - 1/29/2019
Thanks for the code. I asked you to please provide any external files the code needs to run. Your code relies on several image files. Would you please put those images in a ZIP file and attach that archive to this thread? To attach files to a post, click +Insert -> Add File.
Along the same lines, please don't paste entire scripts into a post's body. Instead, please attach the actual script file to your post. Thank you.
|
By Théo - 1/30/2019
Of course sorry !
|
By Dave - 1/30/2019
Thank you for the full set of files. Next time please also attach the actual script, and please indicate clearly which stimuli are neutral and which are negative.
Here's how you can arrange your script to add a counter-conditioning block:
<picture CSevaluation> /position = (50%,20%) /size = (50%,50%) /items = CSimages </picture>
<item CSimages> /1= "B1.jpg" /2= "B2.jpg" /3= "B3.jpg" /4= "B4.jpg" /5= "B5.jpg" /6= "B6.jpg" /7= "B7.jpg" /8= "B8.jpg" </item>
<likert evaluation> /numpoints = 11 / anchors = [1="Très déplaisant";11="Très plaisant"] /position = (50%,50%) / stimulusframes = [1 = CSevaluation] / anchorwidth=5% </likert>
<block evaluation1> / preinstructions = (introduction, evaluation) / trials = [1-8=noreplace(evaluation)] </block>
<block evaluation2> / preinstructions = (evaluation) / trials = [1-8=noreplace(evaluation)] </block>
//for 1st block <picture cs1> / items = images_cs1 /select = current(us1) /position = (50%,90%) /size = (30%,30%) </picture>
<picture us1> / items = images_us1 /select = noreplace /position = (50%,50%) /size = (100%,100%) </picture>
//for 2nd block <picture cs2> / items = images_cs2 /select = current(us2) /position = (50%,90%) /size = (30%,30%) </picture>
<picture us2> / items = images_us2 /select = noreplace /position = (50%,50%) /size = (100%,100%) </picture>
<shape rectangle> / shape = rectangle / color = black /size = (100%,100%) </shape>
//for 1st block <item images_us1> </item>
<item images_cs1> </item>
//for 2nd block <item images_us2> </item>
<item images_cs2> </item>
<counter neg> / items = ("3500.jpg","9410.jpg","9001.jpg","2722.jpg") / select = noreplace / selectionrate = trial </counter>
<counter neut> / items = ("8185.jpg","8030.jpg","5000.jpg","2370.jpg") / select = noreplace / selectionrate = trial </counter>
<counter setup_cs> / items = ("B1.jpg","B2.jpg","B3.jpg","B4.jpg","B5.jpg","B6.jpg","B7.jpg","B8.jpg") / select = noreplace / selectionrate = trial </counter>
<trial 1st4> / ontrialbegin = [item.images_cs1.item=counter.setup_cs.selectedvalue] / ontrialbegin = [item.images_cs2.item=counter.setup_cs.currentitem] / ontrialbegin = [item.images_us1.item=counter.neg.selectedvalue] / ontrialbegin = [item.images_us2.item=counter.neut.selectedvalue] / trialduration = 0 </trial>
<trial 2nd4> / ontrialbegin = [item.images_cs1.item=counter.setup_cs.selectedvalue] / ontrialbegin = [item.images_cs2.item=counter.setup_cs.currentitem] / ontrialbegin = [item.images_us1.item=counter.neut.selectedvalue] / ontrialbegin = [item.images_us2.item=counter.neg.selectedvalue] / trialduration = 0 </trial>
<trial test1> /stimulustimes = [1500=rectangle; 1= us1,cs1] /timeout = 2500 </trial>
<trial test2> /stimulustimes = [1500=rectangle; 1= us2,cs2] /timeout = 2500 </trial>
<caption attention> / caption = "ATTENTION, si vous ne vous en souvenez pas répondez à cette question :" / txcolor = red /position = (20%,65%) </caption>
<radiobuttons cc1> / caption = "Cette figure était-elle présentée avec une image plaisante ou déplaisante ?" / options=("Plaisante", "Déplaisante") / required = False /position = (20%,50%) </radiobuttons>
<radiobuttons cc2> / caption = "Trouvez-vous cette figure plaisante ou déplaisante ?" / options=("Plaisante", "Déplaisante") / required = False /position = (20%,70%) </radiobuttons>
<surveypage cc> / fontstyle = ("Verdana", -16, true, false, false, false, 5, 0) / questions = [1=cc1; 2=attention; 3=cc2] / stimulusframes = [1=CSevaluation] </surveypage>
<block conscience> / trials=[1-8=noreplace(cc)] </block>
<page evaluation > Vous allez maintenant voir plusieurs figures géométriques apparaitre à l'écran. ^^Vous devrez noter ces figures géométriques sur une échelle de 1 à 11, indiquant si vous les trouvez plus ou moins plaisantes ou déplaisantes. ^^Ne passez pas trop de temps sur cette tâche, et répondez de la manière la plus spontanée possible. </page>
<page introduction> Lâétude porte sur des processus de perception de différents stimuli. ^^Elle comprend trois phases. Dans la première, vous devrez évaluer une série de figures géométriques. ^^Dans la deuxième, vous verrez diverses photographies apparaitre à lâécran. ^^Elles seront présentées dans un ordre aléatoire (vous nâavez pas à les mémoriser) et dans la dernière, vous évaluerez de nouveau les mêmes figures. </page>
<page consignes_conditionnement> Vous allez voir apparaitre plusieurs paires d'images à l'écran, vous n'avez pas a les mémoriser mais vous devez les regarder attentivement. </page>
<block conditionnement1> /preinstructions = (consignes_conditionnement) / trials = [1-4=1st4; 5-8=2nd4; 9-72=noreplace(test1)] </block>
<block conditionnement2> /preinstructions = (consignes_conditionnement) / trials = [1-64=noreplace(test2)] </block>
<expt experience> / blocks = [1=evaluation1; 2=conditionnement1; 3=conscience; 4=evaluation2; 5=conditionnement2] </expt>
|
By Théo - 1/30/2019
Thank you so much for your help! I will try to be more efficient in my future requests.
|
By Théo - 1/31/2019
Okay, I need a little more help. Finally, in addition, I have to make sure that the forces of the images are the same at time 1 and time 2. So that during time 1 the average negative images are replaced by average positive images in time 2 etc. This is the "new" code :
<picture CSevaluation> /position = (50%,20%) /size = (50%,50%) /items = CSimages </picture>
<item CSimages> /1= "B1.jpg" /2= "B2.jpg" /3= "B3.jpg" /4= "B4.jpg" /5= "B5.jpg" /6= "B6.jpg" /7= "B7.jpg" /8= "B8.jpg" </item>
<likert evaluation> /numpoints = 11 / anchors = [1="Très déplaisant";11="Très plaisant"] /position = (50%,50%) / stimulusframes = [1 = CSevaluation] / anchorwidth=5% </likert>
<block evaluation1> / preinstructions = (introduction, evaluation) / trials = [1-8=noreplace(evaluation)] </block>
<block evaluation2> / preinstructions = (evaluation) / trials = [1-8=noreplace(evaluation)] </block>
<block evaluation3> /preinstructions = (evaluation) /trials = [1-8=noreplace(evaluation)] </block>
//for 1st block <picture cs1> / items = images_cs1 /select = current(us1) /position = (50%,90%) /size = (30%,30%) </picture>
<picture us1> / items = images_us1 /select = noreplace /position = (50%,50%) /size = (100%,100%) </picture>
//for 2nd block <picture cs2> / items = images_cs2 /select = current(us2) /position = (50%,90%) /size = (30%,30%) </picture>
<picture us2> / items = images_us2 /select = noreplace /position = (50%,50%) /size = (100%,100%) </picture>
<shape rectangle> / shape = rectangle / color = black /size = (100%,100%) </shape>
//for 1st block <item images_us1> </item>
<item images_cs1> </item>
//for 2nd block <item images_us2> </item>
<item images_cs2> </item>
<counter neg> / items = ("M03-colere-26.png","M03-colere-50.png","M03-colere-75.png","M03-colere-100.png") / select = noreplace / selectionrate = trial </counter>
<counter neut> / items = ("F03-joie-26.png","F03-joie-51.png","F03-joie-76.png","F03-joie-100.png") / select = noreplace / selectionrate = trial </counter>
<counter setup_cs> / items = ("B1.jpg","B2.jpg","B3.jpg","B4.jpg","B5.jpg","B6.jpg","B7.jpg","B8.jpg") / select = noreplace / selectionrate = trial </counter>
<trial 1st4> / ontrialbegin = [item.images_cs1.item=counter.setup_cs.selectedvalue] / ontrialbegin = [item.images_cs2.item=counter.setup_cs.currentitem] / ontrialbegin = [item.images_us1.item=counter.neg.selectedvalue] / ontrialbegin = [item.images_us2.item=counter.neut.selectedvalue] / trialduration = 0 </trial>
<trial 2nd4> / ontrialbegin = [item.images_cs1.item=counter.setup_cs.selectedvalue] / ontrialbegin = [item.images_cs2.item=counter.setup_cs.currentitem] / ontrialbegin = [item.images_us1.item=counter.neut.selectedvalue] / ontrialbegin = [item.images_us2.item=counter.neg.selectedvalue] / trialduration = 0 </trial>
<trial test1> /stimulustimes = [1500=rectangle; 1= us1,cs1] /timeout = 2500 </trial>
<trial test2> /stimulustimes = [1500=rectangle; 1= us2,cs2] /timeout = 2500 </trial>
<caption attention> / caption = "ATTENTION, si vous ne vous en souvenez pas répondez à cette question :" / txcolor = red /position = (20%,65%) </caption>
<radiobuttons cc1> / caption = "Cette figure était-elle présentée avec une image plaisante ou déplaisante ?" / options=("Plaisante", "Déplaisante") / required = False /position = (20%,50%) </radiobuttons>
<radiobuttons cc2> / caption = "Trouvez-vous cette figure plaisante ou déplaisante ?" / options=("Plaisante", "Déplaisante") / required = False /position = (20%,70%) </radiobuttons>
<surveypage cc> / fontstyle = ("Verdana", -16, true, false, false, false, 5, 0) / questions = [1=cc1; 2=attention; 3=cc2] / stimulusframes = [1=CSevaluation] </surveypage>
<block conscience> / trials=[1-8=noreplace(cc)] </block>
<page evaluation > Vous allez maintenant voir plusieurs figures géométriques apparaitre à l'écran. ^^Vous devrez noter ces figures géométriques sur une échelle de 1 à 11, indiquant si vous les trouvez plus ou moins plaisantes ou déplaisantes. ^^Ne passez pas trop de temps sur cette tâche, et répondez de la manière la plus spontanée possible. </page>
<page introduction> L'ÂÂétude porte sur des processus de perception de différents stimuli. ^^Elle comprend trois phases. Dans la première, vous devrez évaluer une série de figures géométriques. ^^Dans la deuxième, vous verrez diverses photographies apparaitre à l'ÂÂécran. ^^Elles seront présentées dans un ordre aléatoire (vous n'ÂÂavez pas à les mémoriser) et dans la dernière, vous évaluerez de nouveau les mêmes figures. </page>
<page consignes_conditionnement> Vous allez voir apparaitre plusieurs paires d'images à l'écran, vous n'avez pas a les mémoriser mais vous devez les regarder attentivement. </page>
<block conditionnement1> /preinstructions = (consignes_conditionnement) / trials = [1-4=1st4; 5-8=2nd4; 9-72=noreplace(test1)] </block>
<block conditionnement2> /preinstructions = (consignes_conditionnement) / trials = [1-64=noreplace(test2)] </block>
<expt experience> / blocks = [1=evaluation1; 2=conditionnement1; 3=conscience; 4=evaluation2; 5=conditionnement2; 6=evaluation3]
You will find attached the images used in the script classified by level (each folder contains the opposite images of the same level)
Sorry for asking you again but i'm in the rush and i had try the entire day to do that in vain ...
|
By Théo - 1/31/2019
this is the first part :
|
By Théo - 1/31/2019
level 1
|
By Théo - 1/31/2019
ok I don't have anymore space... What I am supposed to do ?
|
By Dave - 1/31/2019
+xok I don't have anymore space... What I am supposed to do ? You don't have anymore space for what exactly?
Also, I'm sorry, but those image sets are incomplete -- I can't work with that. FInally, nowhere did you attach the actual script. Could you please put everything -- the script, the images (and only the images the script actually needs, nothing more, nothing less) -- in a single ZIP file and attach it? Thank you.
|
By Dave - 1/31/2019
+x+xok I don't have anymore space... What I am supposed to do ? You don't have anymore space for what exactly? Also, I'm sorry, but those image sets are incomplete -- I can't work with that. FInally, nowhere did you attach the actual script. Could you please put everything -- the script, the images (and only the images the script actually needs, nothing more, nothing less) -- in a single ZIP file and attach it? Thank you. See attached. I've obviously had to create and insert placeholder images. Next time please provide a full, working set of files.
|
By Théo - 2/2/2019
Thank you so much for your help (again) !
I could not put my entire file on because it seems that my available space is insufficient ... Maybe you know how I can (i) delete some previous files or (ii) add more space ? Like that, next time I coud put my entire file ?
Thank you again.
|
|