How to stop items replacing?


Author
Message
rachel18
rachel18
Associate Member (166 reputation)Associate Member (166 reputation)Associate Member (166 reputation)Associate Member (166 reputation)Associate Member (166 reputation)Associate Member (166 reputation)Associate Member (166 reputation)Associate Member (166 reputation)Associate Member (166 reputation)
Group: Forum Members
Posts: 6, Visits: 28
I'm trying to present a block of 12 random trials with 6 trials coming from the 'CSPpleasant' trial and 6 trials coming from the 'CSUupleasant'. I need each picture within the CSP element to present only once followed by any picture from the pleasant element (but with each 'pleasant' picture only presenting once as well) and the same for the CSU element (each picture presented once followed by a 'unpleasant' picture presenting only once).
I have defined the CSP, CSU, pleasant and unpleasant lists and included a noreplace element in each -- I've also included a noreplace element in the block, but when I run the block the pleasant and unpleasant items seem to not replace but the CSP and CSU items do (i.e. V1A will present twice, once with USP1 and the second time with USP6 for example).
I need to make sure that the CSP and CSU items each present once (and only once) in the block -- but I'm not sure how to do this.
Can anybody help? I have attached my code below:

Defined items:

<item CSP>
/1 = "V1A.jpg"
/2 = "V2A.jpg"
/3 = "V3A.jpg"
/4 = "V1B.jpg"
/5 = "V2B.jpg"
/6 = "V3B.jpg"
</item>

<picture CSP>
/items = CSP
/select = noreplace
/size = (50%, 50%)
</picture>

<item CSU>
/1 = "F1A.jpg"
/2 = "F2A.jpg"
/3 = "F3A.jpg"
/4 = "F1B.jpg"
/5 = "F2B.jpg"
/6 = "F3B.jpg"
</item>

<picture CSU>
/items = CSU
/select = noreplace
/size = (50%, 50%)
</picture>

<item pleasant>
/1 = "USP1.jpg"
/2 = "USP2.jpg"
/3 = "USP3.jpg"
/4 = "USP4.jpg"
/5 = "USP5.jpg"
/6 = "USP6.jpg"
</item>

<picture pleasant>
/items = pleasant
/select = noreplace
/size = (60%, 60%)
</picture>

<item unpleasant>
/1 = "USU1.jpg"
/2 = "USU2.jpg"
/3 = "USU3.jpg"
/4 = "USU4.jpg"
/5 = "USU5.jpg"
/6 = "USU6.jpg"
</item>

Trials:

<trial CSPpleasant>
/stimulustimes = [0=CSP; 2000=pleasant]
/timeout = 4000
/posttrialpause = 2000
</trial>

<trial CSUunpleasant>
/stimulustimes = [0=CSU; 2000=unpleasant]
/timeout = 4000
/posttrialpause = 2000
</trial>

Block:

<block acquisition>
/trials = [1-12=noreplace(CSPpleasant, CSUunpleasant)]
/preinstructions = (conditioninginstruction)
</block>



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: 12K, Visits: 98K
rachel18 - Friday, June 1, 2018
I'm trying to present a block of 12 random trials with 6 trials coming from the 'CSPpleasant' trial and 6 trials coming from the 'CSUupleasant'. I need each picture within the CSP element to present only once followed by any picture from the pleasant element (but with each 'pleasant' picture only presenting once as well) and the same for the CSU element (each picture presented once followed by a 'unpleasant' picture presenting only once).
I have defined the CSP, CSU, pleasant and unpleasant lists and included a noreplace element in each -- I've also included a noreplace element in the block, but when I run the block the pleasant and unpleasant items seem to not replace but the CSP and CSU items do (i.e. V1A will present twice, once with USP1 and the second time with USP6 for example).
I need to make sure that the CSP and CSU items each present once (and only once) in the block -- but I'm not sure how to do this.
Can anybody help? I have attached my code below:

Defined items:

<item CSP>
/1 = "V1A.jpg"
/2 = "V2A.jpg"
/3 = "V3A.jpg"
/4 = "V1B.jpg"
/5 = "V2B.jpg"
/6 = "V3B.jpg"
</item>

<picture CSP>
/items = CSP
/select = noreplace
/size = (50%, 50%)
</picture>

<item CSU>
/1 = "F1A.jpg"
/2 = "F2A.jpg"
/3 = "F3A.jpg"
/4 = "F1B.jpg"
/5 = "F2B.jpg"
/6 = "F3B.jpg"
</item>

<picture CSU>
/items = CSU
/select = noreplace
/size = (50%, 50%)
</picture>

<item pleasant>
/1 = "USP1.jpg"
/2 = "USP2.jpg"
/3 = "USP3.jpg"
/4 = "USP4.jpg"
/5 = "USP5.jpg"
/6 = "USP6.jpg"
</item>

<picture pleasant>
/items = pleasant
/select = noreplace
/size = (60%, 60%)
</picture>

<item unpleasant>
/1 = "USU1.jpg"
/2 = "USU2.jpg"
/3 = "USU3.jpg"
/4 = "USU4.jpg"
/5 = "USU5.jpg"
/6 = "USU6.jpg"
</item>

Trials:

<trial CSPpleasant>
/stimulustimes = [0=CSP; 2000=pleasant]
/timeout = 4000
/posttrialpause = 2000
</trial>

<trial CSUunpleasant>
/stimulustimes = [0=CSU; 2000=unpleasant]
/timeout = 4000
/posttrialpause = 2000
</trial>

Block:

<block acquisition>
/trials = [1-12=noreplace(CSPpleasant, CSUunpleasant)]
/preinstructions = (conditioninginstruction)
</block>



If you have any other <block>s or <trial>s in the script that present the CSP and CSU stimuli, make sure to reset the two <picture> elements' selection at the start of the acquisition block:

<block acquisition>
/ onblockbegin = [reset(picture.csp); reset(picture.csu);]
/trials = [1-12=noreplace(CSPpleasant, CSUunpleasant)]
/preinstructions = (conditioninginstruction)
</block>


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search