Millisecond Forums

## Problem with selecting stimulus pairs using counters

https://forums.millisecond.com/Topic9855.aspx

 By blop - 3/2/2013 Hello,I'm trying to create a dot probe task in which each stimulus pair is presented once in each of four trial types (based on top-bottom or bottom-top configuration of each word pair, and the location of the probe).I thought the script was working fine, but have discovered that the stimulus pairs are not always presented in the correct pairs (e.g. 3/16 pairs are not matched in a basic version with only four stimulus pairs).The script is below:*******************************************************************ITEMS*******************************************************************/1 = "one"/2 = "two"/3 = "three"/4 = "four" / 1 = "ONE"/ 2 = "TWO"/ 3 = "THREE"/ 4 = "FOUR"/1 = "p"/2 = "q"*******************************************************************TEXT AND COUNTERS*******************************************************************/ items = probe/ select = replace/ color = white/ vposition = probevpos/items = target/select = stimcounter/vposition = threatvpos/items = neutral/select = current(stimcounter)/vposition = neutralvpos/ items =(1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4)/ select = noreplacenorepeat/ items =(47%,53%,47%,53%,47%,53%,47%,53%,47%,53%,47%,53%,47%,53%,47%,53%)/ select = current(stimcounter)/items =(53%, 47%, 53%, 47%53%, 47%, 53%, 47%53%, 47%, 53%, 47%53%, 47%, 53%, 47%)/select = current(stimcounter)/items =(47%, 47%, 53%, 53%,47%, 47%, 53%, 53%,47%, 47%, 53%, 53%,47%, 47%, 53%, 53%)/select = current(stimcounter)/ items = (25, 16)/ select = current(probe)*******************************************************************OTHER STIMULI AND DEFAULTS*******************************************************************/items = (" + ")/ fontstyle = ("Times", 24pt) / color = (150,150,150)/ size = (100%, 100%)/ txbgcolor = transparent/ screencolor = (150,150,150)/ txcolor = white/ fontstyle = ("Arial Rounded MT", 14pt)*******************************************************************TRIALS AND BLOCKS*******************************************************************/stimulustimes = [0 = fixation; 500 = erase, target, neutral; 1000 = erase, probe]/inputdevice = keyboard/validresponse = ("p","q")/iscorrectresponse = [trial.maintrial.response==counter.correctresponse.selectedvalue]/responsetime = 1000/timeout = 2500/trials = [1-16 = maintrial]Many thanks! By Dave - 3/2/2013 Change/items = neutral/select = current(stimcounter)/vposition = neutralvposto /items = neutral/select = stimcounter/vposition = neutralvpos By blop - 3/3/2013 Thanks, that works a treat!I don't understand the difference between current(stimcounter) and stimcounter though. I would have thought that unless the text for each word in the pair was somehow matched, different stimuli would have been selected. Also the documentation for creating stimulus pairs uses current to specify selection of the matching stimulus item:`/ items = ("BILL", "LINDON")/ select = noreplace/ items = ("CLINTON", "JOHNSON")/ select = current(firstname) `` `However I get the same problem when I use /select=current(target) to select the neutral text i.e. word pairs are no longer consistently matched. Does this have to do with the use of counters in my script? By Dave - 3/3/2013 Does this have to do with the use of counters in my script?Yes.