Random Stimuli and Randomly Ordered Questions


Author
Message
NocteCorvus
NocteCorvus
Respected Member (484 reputation)Respected Member (484 reputation)Respected Member (484 reputation)Respected Member (484 reputation)Respected Member (484 reputation)Respected Member (484 reputation)Respected Member (484 reputation)Respected Member (484 reputation)Respected Member (484 reputation)
Group: Forum Members
Posts: 8, Visits: 15
Dave - Thursday, April 25, 2019
NocteCorvus - Thursday, April 25, 2019
Whoops; wrong version of the code. But same conceptual idea, same question. 

<picture groups>
/ items = groups
/ select = noreplace
/ position = (50%, 30%)
</picture>

<item groups>
/ 1 = "Group 1.png"
/ 2 = "Group 2.png"
/ 3 = "Group 3.png"
/ 4 = "Group 4.png"
</item>

<picture zav_game>
/items = ("zav_game.png")
</picture>

<picture zorp_game>
/items = ("zorp_game.png")
</picture>

<picture meep_game>
/items = ("meep_game.png")
</picture>

<picture snarf_game>
/items = ("snarf_game.png")
</picture>

<slider gameq1_high>
/ range = (1,5)
/ defaultresponse = 3
/ slidersize = (35, 5)
/ position = (33, 62)
</slider>

<slider gameq2_high>
/ range = (1,5)
/ defaultresponse = 3
/ slidersize = (35, 5)
/ position = (33, 82)
</slider>

<slider gameq1_low>
/ range = (1,5)
/ defaultresponse = 3
/ slidersize = (35, 5)
/ position = (33, 67)
</slider>

<slider gameq2_low>
/ range = (1,5)
/ defaultresponse = 3
/ slidersize = (35, 5)
/ position = (33, 87)
</slider>

<surveypage choicequestions_zav>
/ stimulustimes = [0=groups,zav_game]
/ questions = [1=gameq1_high;2=gameq2_high]
/showpagenumbers = false
</surveypage>

<surveypage choicequestions_zorp>
/ stimulustimes = [0=groups,zorp_game]
/ questions = [1=gameq1_high;2=gameq2_high]
/showpagenumbers = false
</surveypage>

<surveypage choicequestions_meep>
/ stimulustimes = [0=groups,meep_game]
/ questions = [1=gameq1_low;2=gameq2_low]
/showpagenumbers = false
</surveypage>

<surveypage choicequestions_snarf>
/ stimulustimes = [0=groups,snarf_game]
/questions = [1=gameq1_low;2=gameq2_low]
/showpagenumbers = false
</surveypage>


<block Activity>
/ preinstructions = (choice_instruct)
/trials = [1-4=random(choicequestions_zav, choicequestions_zorp, choicequestions_snarf, choicequestions_meep) ]
</block>

If you have to post code that relies on external files (here: images), could you please provide those images? I'm not sure that I'm able to answer questions about positioning, i.e. how things look on the screen, without actually being able to see the actual dimensions of your stimuli.

Randomization-wise, however, the code should still do what you want it to do.

Thank you! I'm ok with positioning and figuring out how to fit everything in the screen, it was just randomizing 2 sets of things that was the super tricky part! Thank you for all your help! 


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search