Random generation of image pairs


Author
Message
Théo
Théo
Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)Expert (1.2K reputation)
Group: Forum Members
Posts: 21, Visits: 72
Hello,

I am having some difficulties in writing my script and I need your help. I would like to generate pairs of images randomly but remain the same throughout the experiment. So, for example, I would like B1.jpg to be associated with 9001.jpg throughout the experiment, but for the moment the trials: "conditioning" generates new pairs with each new trial. Is there a function that allows me to obtain the desired result?

Thank you very much for your help,

<picture CSevaluation>
/position = (50%,30%)
/size = (50%,50%)
/items = CSimages
</picture>

<picture CSconditionnement>
/position = (50%,90%)
/size = (30%,30%)
/items = CSimages
</picture>

<picture USnegforts>
/position = (50%,50%)
/size = (100%,100%)
/items = USnegforts
</picture>

<picture USnegfaibles>
/position = (50%,50%)
/size = (100%,100%)
/items = USnegfaibles
</picture>

<picture USposforts>
/position = (50%,50%)
/size = (100%,100%)
/items = USposforts
</picture>

<picture USposfaibles>
/position = (50%,50%)
/size = (100%,100%)
/items = USposfaibles
</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>

<item USnegforts>
/1= "3500.jpg"
/2= "9410.jpg"
</item>

<item USnegfaibles>
/1= "9001.jpg"
/2= "2722.jpg"
</item>

<item USposforts>
/1= "8185.jpg"
/2= "8030.jpg"
</item>

<item USposfaibles>
/1= "5000.jpg"
/2= "2370.jpg"
</item>

<shape rectangle>
/ shape = rectangle
/ color = black
/size = (100%,100%)
</shape>

<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>
/ trials = [1-8=noreplace(evaluation)]
</block>

<block evaluation2>
/ trials = [1-8=noreplace(evaluation)]
</block>

<trial conditionnementnegforts>
/stimulustimes = [1500=rectangle; 1= USnegforts, CSconditionnement]
/timeout = 2500
</trial>

<trial conditionnementnegfaibles>
/stimulustimes = [1500=rectangle; 1= USnegfaibles, CSconditionnement]
/timeout = 2500
</trial>

<trial conditionnementposforts>
/stimulustimes = [1500=rectangle; 1= USposforts, CSconditionnement]
/timeout = 2500
</trial>

<trial conditionnementposfaibles>
/stimulustimes = [1500=rectangle; 1= USposfaibles, CSconditionnement]
/timeout = 2500
</trial>

<block conditionnement>
/ trials = [1-20=noreplace(conditionnementnegforts, conditionnementnegfaibles, conditionnementposforts, conditionnementposfaibles)]
</block>

<expt experience>
/ blocks = [1=evaluation1; 2= conditionnement; 3=evaluation2]


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Théo - 6 Years Ago
Dave - 6 Years Ago
             It works than you for your help !
Théo - 6 Years Ago

Reading This Topic

Explore
Messages
Mentions
Search