Group: Forum Members
Posts: 14,
Visits: 51
|
Hi Dave,
In the following script I am attempting to present a series of pictures where the 'USPx' picture always pulls the same number within a trial. The sequence is CS1-CS1USPx-USPx-CS2USPx-CS2, where x should be the same number each time within a trial. The current script pulls CS1USPx and then any of the 4 USP pictures (so USP1, USP2 etc.) instead of pulling USP1 if the previous picture was CS1USP1, or USP2 if the previous picture was CS1USP2. The USPx-CS2USPx part is working as desired as whatever USPx is CS2USPx pulls the same number. It is just the first CS1USPx-USPx part that is not linking properly. Are you able to spot my error?
" <values> /pleasantitemnumber = 0 /unpleasantitemnumber = 0 /Fpleasantoverlapitemnumber = 0 /Funpleasantoverlapitemnumber = 0 /Bpleasantoverlapitemnumber = 0 /Bunpleasantoverlapitemnumber = 0 </values>
<item FCSP> /1 = "CS1.jpg" </item>
<picture FCSP> /items = FCSP /select = replace </picture>
<item FCSU> /1 = "CS2.jpg" </item>
<picture FCSU> /items = FCSU /select = replace </picture>
<item BCSP> /1 = "CS3.jpg" </item>
<picture BCSP> /items = BCSP /select = replace </picture>
<item BCSU> /1 = "CS4.jpg" </item>
<picture BCSU> /items = BCSU /select = replace </picture>
######################### USs #########################
<item pleasant> /1 = "USP1.jpg" /2 = "USP2.jpg" /3 = "USP3.jpg" /4 = "USP4.jpg" </item>
<picture pleasant> /items = pleasant /select = values.pleasantitemnumber </picture>
<item unpleasant> /1 = "USU1.jpg" /2 = "USU2.jpg" /3 = "USU3.jpg" /4 = "USU4.jpg" </item>
<picture unpleasant> /items = unpleasant /select = values.unpleasantitemnumber </picture>
######################### OVERLAPS #########################
<item Fpleasantoverlap> /1 = "CS1USP1.jpg" /2 = "CS1USP2.jpg" /3 = "CS1USP3.jpg" /4 = "CS1USP4.jpg" </item>
<picture Fpleasantoverlap> /items = Fpleasantoverlap /select = values.Fpleasantoverlapitemnumber </picture>
<item Funpleasantoverlap> /1 = "CS2USU1.jpg" /2 = "CS2USU2.jpg" /3 = "CS2USU3.jpg" /4 = "CS2USU4.jpg" </item>
<picture Funpleasantoverlap> /items = Funpleasantoverlap /select = values.Funpleasantoverlapitemnumber </picture>
<item Bpleasantoverlap> /1 = "CS3USP1.jpg" /2 = "CS3USP2.jpg" /3 = "CS3USP3.jpg" /4 = "CS3USP4.jpg" </item>
<picture Bpleasantoverlap> /items = Bpleasantoverlap /select = values.Bpleasantoverlapitemnumber </picture>
<item Bunpleasantoverlap> /1 = "CS4USU1.jpg" /2 = "CS4USU2.jpg" /3 = "CS4USU3.jpg" /4 = "CS4USU4.jpg" </item>
<picture Bunpleasantoverlap> /items = Bunpleasantoverlap /select = values.Bunpleasantoverlapitemnumber </picture>
######################### LISTS #########################
<list FpleasantoverlapUS> / items = (1, 2, 3, 4) / selectionmode = random </list>
<list FpleasantoverlapCSUS> / items = (1, 2, 3, 4) / selectionmode = list.Fpleasantoverlapus.currentindex </list>
<list FunpleasantoverlapUS> / items = (1, 2, 3, 4) / selectionmode = random </list>
<list FunpleasantoverlapCSUS> / items = (1, 2, 3, 4) / selectionmode = list.Funpleasantoverlapus.currentindex </list>
<list BpleasantoverlapUS> / items = (1, 2, 3, 4) / selectionmode = random </list>
<list BpleasantoverlapCSUS> / items = (1, 2, 3, 4) / selectionmode = list.Bpleasantoverlapus.currentindex </list>
<list BunpleasantoverlapUS> / items = (1, 2, 3, 4) / selectionmode = random </list>
<list BunpleasantoverlapCSUS> / items = (1, 2, 3, 4) / selectionmode = list.Bunpleasantoverlapus.currentindex </list>
######################### Eraser for flashing pictures #########################
<shape eraser> /shape = rectangle /size = (100%, 100%) /erase = false /color = (220, 220, 220) </shape>
######################### Trials #########################
<trial CSPpleasant> /stimulustimes = [0=FCSP; 4000=Fpleasantoverlap; 5000=eraser; 5200=pleasant; 6200=eraser; 6400=pleasant; 7400=eraser; 7600=pleasant; 8600=eraser; 8800=Bpleasantoverlap; 9800=eraser, BCSP] /ontrialbegin = [ values.pleasantitemnumber = list.FpleasantoverlapUS.nextvalue; values.pleasantitemnumber = list.BpleasantoverlapUS.nextvalue; values.Fpleasantoverlapitemnumber = list.Fpleasantoverlapcsus.nextvalue; values.Bpleasantoverlapitemnumber = list.Bpleasantoverlapcsus.nextvalue] /timeout = 13800 /posttrialpause = expressions.randposttrialpause </trial>
<trial CSUunpleasant> /stimulustimes = [0=FCSU; 4000=Funpleasantoverlap; 5000=eraser; 5200=unpleasant; 6200=eraser; 6400=unpleasant; 7400=eraser; 7600=unpleasant; 8600=eraser; 8800=Bunpleasantoverlap; 9800=eraser, BCSU] /ontrialbegin = [ values.unpleasantitemnumber = list.FunpleasantoverlapUS.nextvalue; values.unpleasantitemnumber = list.BunpleasantoverlapUS.nextvalue; values.Funpleasantoverlapitemnumber = list.Funpleasantoverlapcsus.nextvalue; values.Bunpleasantoverlapitemnumber = list.Bunpleasantoverlapcsus.nextvalue] /timeout = 13800 /posttrialpause = expressions.randposttrialpause </trial>
<expressions> /randposttrialpause = replace(4000, 5000, 6000) </expressions> "
Thanks, Luke
|