Pictures and checkboxes


Author
Message
briancjo
briancjo
Distinguished Member (4K reputation)Distinguished Member (4K reputation)Distinguished Member (4K reputation)Distinguished Member (4K reputation)Distinguished Member (4K reputation)Distinguished Member (4K reputation)Distinguished Member (4K reputation)Distinguished Member (4K reputation)Distinguished Member (4K reputation)
Group: Forum Members
Posts: 25, Visits: 167
Supreme Being Dave of Inquisit Land. 

You were most helpful regarding my previous Cyberball questions. Here's another stumper.

I want to run a script in which a trial comprised of one jpg is presented for 10 seconds. After the jpeg, I want an answer screen with 8 check boxes (4 different variables with two choices each). Each block will contain 10 of these trials. Each experiment will contain 4 blocks of trials. 
Can you send me in the right script/code direction? Thanks a bunch.
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
You'll want to set up at least one <trial> element that displays the picture for 10 seconds. You'll then want to follow that up by a <surveypage> displaying your 4 <checkboxes> questions. In a nutshell:

<block someblock>
/ trials = [1-10=sequence(showpicture, ratingpage)]
</block>

<trial showpicture>
/ stimulusframes = [1=mypicture]
/ trialduration = 10000
/ validresponse = (0)
</trial>

<picture mypicture>
/ items = myitems
</picture>

<item myitems>
/ 1 = "pic01.jpg"
...
/ 10 = "pic10.jpg"
</item>

<surveypage ratingpage>
/ questions = [1=checkboxes1; 2=checkboxes2; 3=checkboxes3; 4=checkboxes4;]
/ showpagenumbers = false
/ showquestionnumbers = false
</surveypage>

<checkboxes checboxes1>
...
</checkboxes>

...

<checkboxes checboxes4>
...
</checkboxes>



briancjo
briancjo
Distinguished Member (4K reputation)Distinguished Member (4K reputation)Distinguished Member (4K reputation)Distinguished Member (4K reputation)Distinguished Member (4K reputation)Distinguished Member (4K reputation)Distinguished Member (4K reputation)Distinguished Member (4K reputation)Distinguished Member (4K reputation)
Group: Forum Members
Posts: 25, Visits: 167
Supreme Being, you strike again. Here is the code where I am at and where im stuck...

<expt RatingScales>
/blocks = [1 = DISC]
</expt>

<item DISCimages>
/1 = "A big_circ dotted__.jpg"
/2 = "T big_circ dotted__.jpg"
/3 = "A big_circ solid__.jpg"
/4 = "T big_circ solid__.jpg"
/5 = "A big_squ dotted__.jpg"
/6 = "T big_squ dotted__.jpg"
/7 = "A big_squ solid__.jpg"
/8 = "T big_squ solid__.jpg"
/9 = "A sm_circ dotted__.jpg"
/10 = "T small_circ dotted__.jpg"
/11 = "A sm_circ solid__.jpg"
/12 = "T small_circ solid__.jpg"
/13 = "A sm_squ dotted__.jpg"
/14 = "T small_squ dotted__.jpg"
/15 = "A sm_squ solid__.jpg"
/16 = "T small_squ solid__.jpg"
</item>

<checkboxes DISCRatingScale>
/ caption="Pick one or more of the following choices:"
/ required = true
/ options=("choice1", "choice2", "choice3", "choice4")
</checkboxes>

<surveypage DISCRatingScaleSP>
/questions = [1-10 = DISCRatingScale]
/showpagenumbers = false
/showquestionnumbers = false
</surveypage>

<picture discrimination>
/items = DISCimages
</picture>

<trial picture1>
/stimulusframes = [1 = discrimination]
/trialduration = 1000
/validresponse = (0)
</trial>

<block DISC>
/trials = [1-10 = sequence(picture1, DISCRatingScaleSP)]
</block>

--------
I have 16 possible pictures, I need to pick or set a seqeunce for only 10, no replacements. But it can't be randomized. It must be fixed for each subject.
For now, it can be (1, 3, 5, 7, 9, 16, 14, 12, 10, 8)
Is there a way to set a fixed sequence like in cyberball? 
After, ideally, this would all be one big block, and i would need to run three more blocks. so the entire experiment would run 4 blocks of 10 trials each with a fixed schedule of pictures.

Brian
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
Yes, you can specify fixed sequences. Here's a quick example using <text> elements, it works the same with <picture>s:

<values>
/ itemnumber = 1
</values>

<expt>
/ blocks = [1=ablock; 2=bblock]
</expt>

<block ablock>
/ trials = [1-5=atrial]
</block>

<block bblock>
/ trials = [1-5=btrial]
</block>

<trial atrial>
/ ontrialbegin = [values.itemnumber=list.asequence.nextvalue]
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<trial btrial>
/ ontrialbegin = [values.itemnumber=list.bsequence.nextvalue]
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<text mytext>
/ items = myitems
/ select = values.itemnumber
</text>

<list asequence>
/ items = (1,3,5,7,9)
/ selectionmode = sequence
</list>

<list bsequence>
/ items = (2,4,6,8,10)
/ selectionmode = sequence
</list>

<item myitems>
/ 1 = "A"
/ 2 = "B"
/ 3 = "C"
/ 4 = "D"
/ 5 = "E"
/ 6 = "F"
/ 7 = "G"
/ 8 = "H"
/ 9 = "I"
/ 10 = "J"
</item>


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search