Dot probe task


Author
Message
mchu01
mchu01
Respected Member (499 reputation)Respected Member (499 reputation)Respected Member (499 reputation)Respected Member (499 reputation)Respected Member (499 reputation)Respected Member (499 reputation)Respected Member (499 reputation)Respected Member (499 reputation)Respected Member (499 reputation)
Group: Forum Members
Posts: 4, Visits: 97
Hi, 
I have several questions regarding the dot probe task. I followed one of the online examples for my script.
1) How come the data entry for sum_correct_probeinhighposition_simple, sum_correct_probeinlowposition_simple, sumrt_probeinhighposition_simple , sumrt_probeinlowposition_simple, meanrt_probeinhighposition_simple, meanrt_probeinlowposition_simple all showed up as 0 in the raw data sheet?
Also, is there any way to record the values of "targetduration = rand(30,750)" and "probe_posttrialpause = rand(250,750)" for each trial? For now I have them under <expression> Even though it's random, I wanted to record the timing for each trial.

2) Can the presentation size for the images be standardized for different computer monitors? The images I presented seemed more unrealistic when presented in large monitors compared to in small monitors.

3) Is there an easy way to present an outline of the four quadrants at the time the fixation cross is presented? My dotprobe task would have picture pairs appearing either right/left, or top/bottom of the screen, so I would like to outline where the pictures might end up.

Please see below for my script. I have omitted some parts of the script so that the page won't be overwhelmingly long.

Thanks in advance!!!
-Michael
<values>
/fixationduration = 500
/probeduration = 1000
/fixation_posttrialpause = 0
/target_posttrialpause = 0
/probe1 = "A"
/probe2 = "H"
/responsekey_left = 30
/responsekey_right = 35
/responsekey_left_label = "A"
/responsekey_right_label = "H"
/minimum_latency = 1000
/target_left_x = 27%
/target_right_x = 73%
/target_y = 50%
/target_x = 50%
/target_bottom_y = 27%
/target_top_y = 73%
/fixationcross_height = 5%
/probe_height = 5%
/imagewidth = 40%
/imageheight = 40%
</values>
<expressions>
/targetduration = rand(30,750)
/probe_posttrialpause = rand(250,750)
</expressions>
*******************************************************
********************************************
Editable Instructions
********************************************
*******************************************************
<instruct>
/ fontstyle = ("Arial", 3.00%, false, false, false, false, 5, 1)
/ txcolor = (0, 0, 0)
/windowsize = (90%, 90%)
/ finishlabel = "Press <Spacebar> to continue"
/ nextkey = (57)
/nextlabel = "Press <Spacebar> to continue"
/prevkey = (28)
/prevlabel = "Press <Enter> to go back"
</instruct>


<page practice>
Practice is over. 
^^^^When you are ready, continue on to the actual task. The actual task is like practice but there is not going to be any feedback.
^^^^^^^^^^^^^Please press the spacebar key to begin. 
</page>
<page thankyou>
Thank you for your participation!
</page>
*******************************************************
********************************************
Editable Stimuli: original stimuli generously shared by Dr. Fillmore
********************************************
*******************************************************
Note: 
itemnumbers 1-10: simple pictures
Note: itemnumbers 11-20 could contain complex pictures (itemnumbers > 10 
would then always distinguish between simple and complex pictures)
<item highimages>
/1 = "high1.bmp"
/2 = "high6.bmp"
/3 = "high10.bmp"
/4 = "high16.bmp"
/5 = "high17.bmp"
/6 = "high18.bmp"
/7 = "high19.bmp"
/8 = "high21.bmp"
/9 = "high22.bmp"
/10 = "high23.bmp"
/11 = "high25.bmp"
/12 = "high27.bmp"
/13 = "high28.bmp"
/14 = "high29.bmp"
/15 = "high34.bmp"
/16 = "high35.bmp"
/17 = "high38.bmp"
/18 = "high39.bmp"
/19 = "high40.bmp"
/20 = "high41.bmp"
/21 = "high42.bmp"
/22 = "high44.bmp"
/23 = "high47.bmp"
/24 = "high48.bmp"
</item>
<item lowimages>
/1 = "low1.bmp"
/2 = "low6.bmp"
/3 = "low10.bmp"
/4 = "low16.bmp"
/5 = "low17.bmp"
/6 = "low18.bmp"
/7 = "low19.bmp"
/8 = "low21.bmp"
/9 = "low22.bmp"
/10 = "low23.bmp"
/11 = "low25.bmp"
/12 = "low27.bmp"
/13 = "low28.bmp"
/14 = "low29.bmp"
/15 = "low34.bmp"
/16 = "low35.bmp"
/17 = "low38.bmp"
/18 = "low39.bmp"
/19 = "low40.bmp"
/20 = "low41.bmp"
/21 = "low42.bmp"
/22 = "low44.bmp"
/23 = "low47.bmp"
/24 = "low48.bmp"
</item>
<item fillerimages_high>
/1 = "high1.bmp"
/2 = "high6.bmp"
/3 = "high10.bmp"
/4 = "high16.bmp"
/5 = "high17.bmp"
/6 = "high18.bmp"
/7 = "high19.bmp"
/8 = "high21.bmp"
/9 = "high22.bmp"
/10 = "high23.bmp"
/11 = "high25.bmp"
/12 = "high27.bmp"
/13 = "high28.bmp"
/14 = "high29.bmp"
/15 = "high34.bmp"
/16 = "high35.bmp"
/17 = "high38.bmp"
/18 = "high39.bmp"
/19 = "high40.bmp"
/20 = "high41.bmp"
/21 = "high42.bmp"
/22 = "high44.bmp"
/23 = "high47.bmp"
/24 = "high48.bmp"
</item>
<item fillerimages_low>
/1 = "low1.bmp"
/2 = "low6.bmp"
/3 = "low10.bmp"
/4 = "low16.bmp"
/5 = "low17.bmp"
/6 = "low18.bmp"
/7 = "low19.bmp"
/8 = "low21.bmp"
/9 = "low22.bmp"
/10 = "low23.bmp"
/11 = "low25.bmp"
/12 = "low27.bmp"
/13 = "low28.bmp"
/14 = "low29.bmp"
/15 = "low34.bmp"
/16 = "low35.bmp"
/17 = "low38.bmp"
/18 = "low39.bmp"
/19 = "low40.bmp"
/20 = "low41.bmp"
/21 = "low42.bmp"
/22 = "low44.bmp"
/23 = "low47.bmp"
/24 = "low48.bmp"
</item>
*******************************************************************************************************************
*******************************************************************************************************************
DEFAULTS
*******************************************************************************************************************
*******************************************************************************************************************
requires Inquisit 4.0.3.0 or higher
<defaults>
/minimumversion = "4.0.3.0"
/ fontstyle = ("Arial", 3%, false, false, false, false, 5, 1)
/ txcolor = (white)
/txbgcolor = (black)
/screencolor = black
/canvasaspectratio = (4,3)
</defaults>
*******************************************************************************************************************
*******************************************************************************************************************
VALUES
*******************************************************************************************************************
*******************************************************************************************************************
********************
automatically updated
********************
/itemnumber:                              itemnumber of currently selected picture
/selecteditem:                              helper variable to determine itemnumber
/high_x-probe_x:                           the y-coordinate (in %) of the high/low/probe
/lowimage:                              stores the currently presented low image (or pseudo low image)
/highimage:                              stores the currently presented high image (or pseudo high image)
/highposition:                           1 = high image on right; 2 = high image on left
/congruence:                              0 = filler; 1 = probe and high position same; 2 = probe and high position different
Summary Variables: only for high and low pictures (not for filler1/filler2 pictures = filler stimuli)
/sum_correct:                              counts the correct responses >= values.minimum_latency (here: 100ms)
/sum_correct_probeinhighposition_simple:         counts the correct responses to probes in the high position/probes in the low position
/sum_correct_probeinlowposition_simple:         for responses >= values.minimum_latency (simple pictures)
/sum_correct_probeinhighposition_complex:      counts the correct responses to probes in the high position/probes in the low position
/sum_correct_probeinlowposition_complex:      for responses >= values.minimum_latency (complex pictures)
/sumrt_probeinhighposition_simple:            adds up the latencies for CORRECT responses when the probe is in the high/low position
/sumrt_probeinlowposition_simple:            and latencies >= values.minimum_latency (simple pictures)
/sumrt_probeinhighposition_complex:            adds up the latencies for CORRECT responses when the probe is in the high/low position
/sumrt_probeinlowposition_complex:            and latencies >= values.minimum_latency (complex pictures)
/meanrt_probeinhighposition_simple:            contains the mean latency for CORRECT responses when the probe is in the high/low position
/meanrt_probeinlowposition_simple:            (simple pictures)
/meanrt_probeinhighposition_complex:            contains the mean latency for CORRECT responses when the probe is in the high/low position
/meanrt_probeinlowposition_complex:            (complex pictures)
/task:                                    1 = practice; 2 = test                        
<values>
/itemnumber = 0
/selecteditem = ""
/high_x = 0
/high_y = 0 
/low_x = 0
/low_y = 0
/probe_x = 0
/probe_y = 0
/probetype = 0
/lowimage = ""
/lowimage_y = ""
/highimage = ""
/highimage_y = ""
/highposition = 0
/congruence = 0
/sum_correct = 0
/sum_correct_probeinhighposition_simple = 0
/sum_correct_probeinlowposition_simple= 0
/sumrt_probeinhighposition_simple = 0
/sumrt_probeinlowposition_simple = 0
/meanrt_probeinhighposition_simple = 0
/meanrt_probeinlowposition_simple = 0
/task = 0
</values>
*******************************************************************************************************************
*******************************************************************************************************************
EXPRESSIONS
*******************************************************************************************************************
*******************************************************************************************************************
/AB_simple:    Attentional Bias for simple pictures: If AB_simple > 0 => faster mean latencies to high pictures for simple pictures
<expressions>
/AB_simple = values.meanrt_probeinlowposition_simple - values.meanrt_probeinhighposition_simple
</expressions>
*******************************************************************************************************************
*******************************************************************************************************************
DATA
*******************************************************************************************************************
*******************************************************************************************************************
for explanations of custom values, go to VALUES/EXPRESSIONS. Customize.
********************
raw data
********************
<data>
/file = "highDotProbe_rawdata.iqdat"
/separatefiles = true
/columns = [date, time, subject, blockcode, blocknum, trialcode, trialnum,
values.congruence, values.highposition,
values.low_x, values.high_x, values.high_y, values.probe_x, values.probe_y
values.itemnumber, values.highimage, values.lowimage, values.highimage_y, values.lowimage_y
response, correct, latency, values.sum_correct
values.meanrt_probeinhighposition_simple, values.sumrt_probeinhighposition_simple, values.sum_correct_probeinhighposition_simple,
values.meanrt_probeinlowposition_simple, values.sumrt_probeinlowposition_simple, values.sum_correct_probeinlowposition_simple,
expressions.ab_simple] 
</data>
********************
summary data
********************
<summarydata >
/file = "highDotProbe_summary.iqdat"
/columns = [script.startdate, script.starttime, script.subjectid,
values.fixationduration, expressions.targetduration, values.probeduration,
values.fixation_posttrialpause, values.target_posttrialpause, expressions.probe_posttrialpause,
values.probe1, values.probe2, 
values.sum_correct, 
values.meanrt_probeinhighposition_simple, values.sumrt_probeinhighposition_simple, values.sum_correct_probeinhighposition_simple,
values.meanrt_probeinlowposition_simple, values.sumrt_probeinlowposition_simple, values.sum_correct_probeinlowposition_simple,
expressions.ab_simple] 
</summarydata>
 
*******************************************************************************************************************
*******************************************************************************************************************
STIMULI
*******************************************************************************************************************
*******************************************************************************************************************
<picture highimage>
/items = highimages
/select = values.itemnumber
/hposition = values.high_x
/vposition = values.target_y
/size = (values.imagewidth, values.imageheight)
</picture>
<picture highimage_y>
/items = highimages
/select = values.itemnumber
/hposition = values.target_x
/vposition = values.high_y
/size = (values.imagewidth, values.imageheight)
</picture>
<picture lowimage>
/items = lowimages
/select = values.itemnumber
/hposition = values.low_x
/vposition = values.target_y
/size = (values.imagewidth, values.imageheight)
</picture>
<picture lowimage_y>
/items = lowimages
/select = values.itemnumber
/hposition = values.target_x
/vposition = values.low_y
/size = (values.imagewidth, values.imageheight)
</picture>
<picture fillerhighimage>
/items = fillerimages_high
/select = values.itemnumber
/hposition = values.high_x
/vposition = values.target_y
/size = (values.imagewidth, values.imageheight)
</picture>
<picture fillerhighimage_y>
/items = fillerimages_high
/select = values.itemnumber
/hposition = values.target_x
/vposition = values.high_y
/size = (values.imagewidth, values.imageheight)
</picture>
<picture fillerlowimage>
/items = fillerimages_low
/select = values.itemnumber
/hposition = values.low_x
/vposition = values.target_y
/size = (values.imagewidth, values.imageheight)
</picture>
<picture fillerlowimage_y>
/items = fillerimages_low
/select = values.itemnumber
/hposition = values.target_x
/vposition = values.low_y
/size = (values.imagewidth, values.imageheight)
</picture>
******************************
other stimuli
******************************
<text fixation>
/items = ("+")
/position = (50%, 50%)
/ fontstyle = ("Arial", values.fixationcross_height, false, false, false, false, 5, 1)
</text>
<text probe>
/items = ("<%values.probe1%>", "<%values.probe2%>")
/select = values.probetype
/hposition = values.probe_x
/vposition = values.probe_y
/txcolor = white
/ fontstyle = ("Arial", values.probe_height, false, false, false, false, 5, 1)
</text>
<text break1>
/items = ("Please take a break. The trial will resume in 30 seconds")
/position = (50%, 50%)
/ fontstyle = ("Arial", values.fixationcross_height, false, false, false, false, 5, 1)
</text>
<text break2>
/items = ("Please get ready. The trial will begin in 5 seconds")
/position = (50%, 50%)
/ fontstyle = ("Arial", values.fixationcross_height, false, false, false, false, 5, 1)
</text>
<shape eraser>
/shape = rectangle
/size = (100%, 100%)
/color = black
/position = (50%, 50%)
</shape>
<text feedback>
/items = ("ERROR")
/txcolor = red
/position = (50%, 50%)
/ fontstyle = ("Arial", 10%, true, false, false, false, 5, 1)
</text>
*******************************************************************************************************************
*******************************************************************************************************************
LISTS
*******************************************************************************************************************
*******************************************************************************************************************
Note: the following lists filler the picture selection for the four different trial sequences
(experiment: probe in high/low position; filler: probe in 'high'/'low' position)
to ensure that each image is presented 4 times (right/left, with probe/without probe)
digits: refer to itemnumber
letter: A-> show 'high' picture on the right; B -> show 'high' picture on the left
<list HLH_items>
/items = ("1A", "1B", "2A", "2B","3A", "3B", "4A", "4B", "5A", "5B", "6A", "6B", "7A", "7B", "8A", "8B", "9A", "9B", "10A", "10B", "11A", "11B", "12A", "12B", "13A", "13B", "14A", "14B", "15A", "16A", "16B", "17A", "17B", "18A", "18B", "19A", "19B", "20A", "20B", "21A", "21B", "22A", "22B", "23A", "23B", "24A", "24B")
/replace = false
/resetinterval = 1
</list>
<list HLL_items>
/items = ("1A", "1B", "2A", "2B","3A", "3B", "4A", "4B", "5A", "5B", "6A", "6B", "7A", "7B", "8A", "8B", "9A", "9B", "10A", "10B", "11A", "11B", "12A", "12B", "13A", "13B", "14A", "14B", "15A", "16A", "16B", "17A", "17B", "18A", "18B", "19A", "19B", "20A", "20B", "21A", "21B", "22A", "22B", "23A", "23B", "24A", "24B")
/replace = false
/resetinterval = 1
</list>
<list filler_HHH_items>
/items = ("1A", "1B", "2A", "2B","3A", "3B", "4A", "4B", "5A", "5B", "6A", "6B", "7A", "7B", "8A", "8B", "9A", "9B", "10A", "10B", "11A", "11B", "12A", "12B", "13A", "13B", "14A", "14B", "15A", "16A", "16B", "17A", "17B", "18A", "18B", "19A", "19B", "20A", "20B", "21A", "21B", "22A", "22B", "23A", "23B", "24A", "24B")
/replace = false
/resetinterval = 1
</list>
<list filler_LLL_items>
/items = ("1A", "1B", "2A", "2B","3A", "3B", "4A", "4B", "5A", "5B", "6A", "6B", "7A", "7B", "8A", "8B", "9A", "9B", "10A", "10B", "11A", "11B", "12A", "12B", "13A", "13B", "14A", "14B", "15A", "16A", "16B", "17A", "17B", "18A", "18B", "19A", "19B", "20A", "20B", "21A", "21B", "22A", "22B", "23A", "23B", "24A", "24B")
/replace = false
/resetinterval = 1
</list>
<list probetype>
/items = (1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2)
/replace = false
</list>
*******************************************************************************************************************
*******************************************************************************************************************
EXPERIMENTAL TRIALS: pairs of high images - low images
*******************************************************************************************************************
*******************************************************************************************************************
********************************************
Probe in high Position (HLH) : Trial Sequence
********************************************
Note: trial.fixation_HLH
1) presents the fixation stimulus in the center of the screen
2) calls trial.targets_HLH
3) does not record any data (by default)
<trial fixation_HLH>
/ontrialbegin = [values.congruence = 1]
/stimulusframes = [1 = eraser, fixation]
/timeout = values.fixationduration
/branch = [trial.targets_HLH]
/posttrialpause = values.fixation_posttrialpause
/recorddata = false
</trial>
Note: trial.targets_HLH
1) determines the itemnumber of the current image and whether to show it right or left
2) presents the two images for a set amount of time (values.targetduration)
3) calls trial.probe_HLH
4) does not record any data (by default)
<trial targets_HLH>
/ontrialbegin = [values.selecteditem = list.HLH_items.nextvalue]
/ontrialbegin = [if (values.selecteditem == "1A") {values.itemnumber = 1; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "1B") {values.itemnumber = 1; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "2A") {values.itemnumber = 2; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "2B") {values.itemnumber = 2; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "3A") {values.itemnumber = 3; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "3B") {values.itemnumber = 3; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "4A") {values.itemnumber = 4; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "4B") {values.itemnumber = 4; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "5A") {values.itemnumber = 5; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "5B") {values.itemnumber = 5; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "6A") {values.itemnumber = 6; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "6B") {values.itemnumber = 6; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "7A") {values.itemnumber = 7; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "7B") {values.itemnumber = 7; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "8A") {values.itemnumber = 8; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "8B") {values.itemnumber = 8; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "9A") {values.itemnumber = 9; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "9B") {values.itemnumber = 9; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "10A") {values.itemnumber = 10; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "10B") {values.itemnumber = 10; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "11A") {values.itemnumber = 11; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "11B") {values.itemnumber = 11; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "12A") {values.itemnumber = 12; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "12B") {values.itemnumber = 12; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "13A") {values.itemnumber = 13; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "13B") {values.itemnumber = 13; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "14A") {values.itemnumber = 14; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "14B") {values.itemnumber = 14; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "15A") {values.itemnumber = 15; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "15B") {values.itemnumber = 15; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "16A") {values.itemnumber = 16; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "16B") {values.itemnumber = 16; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "17A") {values.itemnumber = 17; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "17B") {values.itemnumber = 17; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "18A") {values.itemnumber = 18; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "18B") {values.itemnumber = 18; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "19A") {values.itemnumber = 19; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "19B") {values.itemnumber = 19; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "20A") {values.itemnumber = 20; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "20B") {values.itemnumber = 20; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "21A") {values.itemnumber = 21; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "21B") {values.itemnumber = 21; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "22A") {values.itemnumber = 22; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "22B") {values.itemnumber = 22; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "23A") {values.itemnumber = 23; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "23B") {values.itemnumber = 23; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "24A") {values.itemnumber = 24; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "24B") {values.itemnumber = 24; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/stimulusframes = [1 = highimage, lowimage]
/ontrialend = [values.highimage = picture.highimage.currentitem; values.lowimage = picture.lowimage.currentitem]
/timeout = expressions.targetduration
/posttrialpause = values.target_posttrialpause
/branch = [trial.probe_HLH]
/recorddata = false
</trial>
Note: trial.probe_HLH
1. the position of the current probe
2. presents the probe in the high position for max. 1000ms (after that a new trialsequence is started)
3. updates several measures
4. records the relevant data into the data file
<trial probe_HLH>
/ontrialbegin = [values.probetype = list.probetype.nextvalue]
/ontrialbegin = [values.probe_x = values.high_x]
/ontrialbegin = [values.probe_y = values.target_y]
/stimulusframes = [1 = probe]
/isvalidresponse = [trial.probe_HLH.response == values.responsekey_left || trial.probe_HLH.response == values.responsekey_right]
/monkeyresponse = (30, 35)
/iscorrectresponse = [(values.probetype == 1 && trial.probe_HLH.response == values.responsekey_left) ||
               (values.probetype == 2 && trial.probe_HLH.response == values.responsekey_right) ]
 
/ontrialend = [if (trial.probe_HLH.correct && trial.probe_HLH.latency >= values.minimum_latency) {
            values.sum_correct += 1;
            values.sum_correct_probeinhighposition_simple += 1;
            values.sumrt_probeinhighposition_simple += trial.probe_HLH.latency;
            values.meanrt_probeinhighposition_simple = values.sumrt_probeinhighposition_simple/values.sum_correct_probeinhighposition_simple}]
/timeout = (values.probeduration)
/branch = [if (values.task == 1 && trial.probe_HLH.error) trial.feedback else trial.intertrialinterval]
</trial>
****************************************************BOT/TOP
Note: trial.fixation_HLH
1) presents the fixation stimulus in the center of the screen
2) calls trial.targets_HLH
3) does not record any data (by default)
<trial fixation_HLH_y>
/ontrialbegin = [values.congruence = 1]
/stimulusframes = [1 = eraser, fixation]
/timeout = values.fixationduration
/branch = [trial.targets_HLH_y]
/posttrialpause = values.fixation_posttrialpause
/recorddata = false
</trial>
Note: trial.targets_HLH
1) determines the itemnumber of the current image and whether to show it right or left
2) presents the two images for a set amount of time (values.targetduration)
3) calls trial.probe_HLH
4) does not record any data (by default)
<trial targets_HLH_y>
/ontrialbegin = [values.selecteditem = list.HLH_items.nextvalue]
/ontrialbegin = [if (values.selecteditem == "1A") {values.itemnumber = 1; values.highposition = 1; values.high_y = values.target_top_y; values.low_y = values.target_bottom_y}]
/ontrialbegin = [if (values.selecteditem == "1B") {values.itemnumber = 1; values.highposition = 2; values.high_y = values.target_bottom_y; values.low_y = values.target_top_y}]
/ontrialbegin = [if (values.selecteditem == "2A") {values.itemnumber = 2; values.highposition = 1; values.high_y = values.target_top_y; values.low_y = values.target_bottom_y}]
/ontrialbegin = [if (values.selecteditem == "2B") {values.itemnumber = 2; values.highposition = 2; values.high_y = values.target_bottom_y; values.low_y = values.target_top_y}]
/ontrialbegin = [if (values.selecteditem == "3A") {values.itemnumber = 3; values.highposition = 1; values.high_y = values.target_top_y; values.low_y = values.target_bottom_y}]
/ontrialbegin = [if (values.selecteditem == "3B") {values.itemnumber = 3; values.highposition = 2; values.high_y = values.target_bottom_y; values.low_y = values.target_top_y}]
/ontrialbegin = [if (values.selecteditem == "4A") {values.itemnumber = 4; values.highposition = 1; values.high_y = values.target_top_y; values.low_y = values.target_bottom_y}]
/ontrialbegin = [if (values.selecteditem == "4B") {values.itemnumber = 4; values.highposition = 2; values.high_y = values.target_bottom_y; values.low_y = values.target_top_y}]
/ontrialbegin = [if (values.selecteditem == "5A") {values.itemnumber = 5; values.highposition = 1; values.high_y = values.target_top_y; values.low_y = values.target_bottom_y}]
/ontrialbegin = [if (values.selecteditem == "5B") {values.itemnumber = 5; values.highposition = 2; values.high_y = values.target_bottom_y; values.low_y = values.target_top_y}]
/ontrialbegin = [if (values.selecteditem == "6A") {values.itemnumber = 6; values.highposition = 1; values.high_y = values.target_top_y; values.low_y = values.target_bottom_y}]
/ontrialbegin = [if (values.selecteditem == "6B") {values.itemnumber = 6; values.highposition = 2; values.high_y = values.target_bottom_y; values.low_y = values.target_top_y}]
/ontrialbegin = [if (values.selecteditem == "7A") {values.itemnumber = 7; values.highposition = 1; values.high_y = values.target_top_y; values.low_y = values.target_bottom_y}]
/ontrialbegin = [if (values.selecteditem == "7B") {values.itemnumber = 7; values.highposition = 2; values.high_y = values.target_bottom_y; values.low_y = values.target_top_y}]
/ontrialbegin = [if (values.selecteditem == "8A") {values.itemnumber = 8; values.highposition = 1; values.high_y = values.target_top_y; values.low_y = values.target_bottom_y}]
/ontrialbegin = [if (values.selecteditem == "8B") {values.itemnumber = 8; values.highposition = 2; values.high_y = values.target_bottom_y; values.low_y = values.target_top_y}]
/ontrialbegin = [if (values.selecteditem == "9A") {values.itemnumber = 9; values.highposition = 1; values.high_y = values.target_top_y; values.low_y = values.target_bottom_y}]
/ontrialbegin = [if (values.selecteditem == "9B") {values.itemnumber = 9; values.highposition = 2; values.high_y = values.target_bottom_y; values.low_y = values.target_top_y}]
/ontrialbegin = [if (values.selecteditem == "10A") {values.itemnumber = 10; values.highposition = 1; values.high_y = values.target_top_y; values.low_y = values.target_bottom_y}]
/ontrialbegin = [if (values.selecteditem == "10B") {values.itemnumber = 10; values.highposition = 2; values.high_y = values.target_bottom_y; values.low_y = values.target_top_y}]
/ontrialbegin = [if (values.selecteditem == "11A") {values.itemnumber = 11; values.highposition = 1; values.high_y = values.target_top_y; values.low_y = values.target_bottom_y}]
/ontrialbegin = [if (values.selecteditem == "11B") {values.itemnumber = 11; values.highposition = 2; values.high_y = values.target_bottom_y; values.low_y = values.target_top_y}]
/ontrialbegin = [if (values.selecteditem == "12A") {values.itemnumber = 12; values.highposition = 1; values.high_y = values.target_top_y; values.low_y = values.target_bottom_y}]
/ontrialbegin = [if (values.selecteditem == "12B") {values.itemnumber = 12; values.highposition = 2; values.high_y = values.target_bottom_y; values.low_y = values.target_top_y}]
/ontrialbegin = [if (values.selecteditem == "13A") {values.itemnumber = 13; values.highposition = 1; values.high_y = values.target_top_y; values.low_y = values.target_bottom_y}]
/ontrialbegin = [if (values.selecteditem == "13B") {values.itemnumber = 13; values.highposition = 2; values.high_y = values.target_bottom_y; values.low_y = values.target_top_y}]
/ontrialbegin = [if (values.selecteditem == "14A") {values.itemnumber = 14; values.highposition = 1; values.high_y = values.target_top_y; values.low_y = values.target_bottom_y}]
/ontrialbegin = [if (values.selecteditem == "14B") {values.itemnumber = 14; values.highposition = 2; values.high_y = values.target_bottom_y; values.low_y = values.target_top_y}]
/ontrialbegin = [if (values.selecteditem == "15A") {values.itemnumber = 15; values.highposition = 1; values.high_y = values.target_top_y; values.low_y = values.target_bottom_y}]
/ontrialbegin = [if (values.selecteditem == "15B") {values.itemnumber = 15; values.highposition = 2; values.high_y = values.target_bottom_y; values.low_y = values.target_top_y}]
/ontrialbegin = [if (values.selecteditem == "16A") {values.itemnumber = 16; values.highposition = 1; values.high_y = values.target_top_y; values.low_y = values.target_bottom_y}]
/ontrialbegin = [if (values.selecteditem == "16B") {values.itemnumber = 16; values.highposition = 2; values.high_y = values.target_bottom_y; values.low_y = values.target_top_y}]
/ontrialbegin = [if (values.selecteditem == "17A") {values.itemnumber = 17; values.highposition = 1; values.high_y = values.target_top_y; values.low_y = values.target_bottom_y}]
/ontrialbegin = [if (values.selecteditem == "17B") {values.itemnumber = 17; values.highposition = 2; values.high_y = values.target_bottom_y; values.low_y = values.target_top_y}]
/ontrialbegin = [if (values.selecteditem == "18A") {values.itemnumber = 18; values.highposition = 1; values.high_y = values.target_top_y; values.low_y = values.target_bottom_y}]
/ontrialbegin = [if (values.selecteditem == "18B") {values.itemnumber = 18; values.highposition = 2; values.high_y = values.target_bottom_y; values.low_y = values.target_top_y}]
/ontrialbegin = [if (values.selecteditem == "19A") {values.itemnumber = 19; values.highposition = 1; values.high_y = values.target_top_y; values.low_y = values.target_bottom_y}]
/ontrialbegin = [if (values.selecteditem == "19B") {values.itemnumber = 19; values.highposition = 2; values.high_y = values.target_bottom_y; values.low_y = values.target_top_y}]
/ontrialbegin = [if (values.selecteditem == "20A") {values.itemnumber = 20; values.highposition = 1; values.high_y = values.target_top_y; values.low_y = values.target_bottom_y}]
/ontrialbegin = [if (values.selecteditem == "20B") {values.itemnumber = 20; values.highposition = 2; values.high_y = values.target_bottom_y; values.low_y = values.target_top_y}]
/ontrialbegin = [if (values.selecteditem == "21A") {values.itemnumber = 21; values.highposition = 1; values.high_y = values.target_top_y; values.low_y = values.target_bottom_y}]
/ontrialbegin = [if (values.selecteditem == "21B") {values.itemnumber = 21; values.highposition = 2; values.high_y = values.target_bottom_y; values.low_y = values.target_top_y}]
/ontrialbegin = [if (values.selecteditem == "22A") {values.itemnumber = 22; values.highposition = 1; values.high_y = values.target_top_y; values.low_y = values.target_bottom_y}]
/ontrialbegin = [if (values.selecteditem == "22B") {values.itemnumber = 22; values.highposition = 2; values.high_y = values.target_bottom_y; values.low_y = values.target_top_y}]
/ontrialbegin = [if (values.selecteditem == "23A") {values.itemnumber = 23; values.highposition = 1; values.high_y = values.target_top_y; values.low_y = values.target_bottom_y}]
/ontrialbegin = [if (values.selecteditem == "23B") {values.itemnumber = 23; values.highposition = 2; values.high_y = values.target_bottom_y; values.low_y = values.target_top_y}]
/ontrialbegin = [if (values.selecteditem == "24A") {values.itemnumber = 24; values.highposition = 1; values.high_y = values.target_top_y; values.low_y = values.target_bottom_y}]
/ontrialbegin = [if (values.selecteditem == "24B") {values.itemnumber = 24; values.highposition = 2; values.high_y = values.target_bottom_y; values.low_y = values.target_top_y}]
/stimulusframes = [1 = highimage_y, lowimage_y]
/ontrialend = [values.highimage_y = picture.highimage_y.currentitem; values.lowimage_y = picture.lowimage_y.currentitem]
/timeout = expressions.targetduration
/posttrialpause = values.target_posttrialpause
/branch = [trial.probe_HLH_y]
/recorddata = false
</trial>
Note: trial.probe_HLH
1. the position of the current probe
2. presents the probe in the high position for max. 1000ms (after that a new trialsequence is started)
3. updates several measures
4. records the relevant data into the data file
<trial probe_HLH_y>
/ontrialbegin = [values.probetype = list.probetype.nextvalue]
/ontrialbegin = [values.probe_x= values.target_x]
/ontrialbegin = [values.probe_y = values.high_y]
/stimulusframes = [1 = probe]
/isvalidresponse = [trial.probe_HLH_y.response == values.responsekey_left || trial.probe_HLH_y.response == values.responsekey_right]
/monkeyresponse = (30, 35)
/iscorrectresponse = [(values.probetype == 1 && trial.probe_HLH_y.response == values.responsekey_left) ||
               (values.probetype == 2 && trial.probe_HLH_y.response == values.responsekey_right) ]
 
/ontrialend = [if (trial.probe_HLH_y.correct && trial.probe_HLH_y.latency >= values.minimum_latency) {
            values.sum_correct += 1;
            values.sum_correct_probeinhighposition_simple += 1;
            values.sumrt_probeinhighposition_simple += trial.probe_HLH_y.latency;
            values.meanrt_probeinhighposition_simple = values.sumrt_probeinhighposition_simple/values.sum_correct_probeinhighposition_simple}]
/timeout = (values.probeduration)
/branch = [if (values.task == 1 && trial.probe_HLH_y.error) trial.feedback else trial.intertrialinterval]
</trial>
********************************************
Probe in low Position (HLL) : Trial Sequence
********************************************
Note: trial.fixation_HLL
1) presents the fixation stimulus in the center of the screen
2) calls trial.targets_HLL
3) does not record any data (by default)
<trial fixation_HLL>
/ontrialbegin = [values.congruence = 2]
/stimulusframes = [1 = eraser, fixation]
/timeout = values.fixationduration
/branch = [trial.targets_HLL]
/posttrialpause = values.fixation_posttrialpause
/recorddata = false
</trial>
Note: trial.targets_HLL
1) determines the itemnumber of the current image and whether to show it right or left
2) presents the two images for a set amount of time (values.targetduration)
3) calls trial.probe_HLL
4) does not record any data (by default)
<trial targets_HLL>
/ontrialbegin = [values.selecteditem = list.HLL_items.nextvalue]
/ontrialbegin = [if (values.selecteditem == "1A") {values.itemnumber = 1; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "1B") {values.itemnumber = 1; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "2A") {values.itemnumber = 2; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "2B") {values.itemnumber = 2; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "3A") {values.itemnumber = 3; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "3B") {values.itemnumber = 3; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "4A") {values.itemnumber = 4; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "4B") {values.itemnumber = 4; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "5A") {values.itemnumber = 5; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "5B") {values.itemnumber = 5; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "6A") {values.itemnumber = 6; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "6B") {values.itemnumber = 6; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "7A") {values.itemnumber = 7; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "7B") {values.itemnumber = 7; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "8A") {values.itemnumber = 8; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "8B") {values.itemnumber = 8; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "9A") {values.itemnumber = 9; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "9B") {values.itemnumber = 9; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "10A") {values.itemnumber = 10; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "10B") {values.itemnumber = 10; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "11A") {values.itemnumber = 11; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "11B") {values.itemnumber = 11; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "12A") {values.itemnumber = 12; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "12B") {values.itemnumber = 12; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "13A") {values.itemnumber = 13; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "13B") {values.itemnumber = 13; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "14A") {values.itemnumber = 14; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "14B") {values.itemnumber = 14; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "15A") {values.itemnumber = 15; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "15B") {values.itemnumber = 15; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "16A") {values.itemnumber = 16; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "16B") {values.itemnumber = 16; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "17A") {values.itemnumber = 17; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "17B") {values.itemnumber = 17; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "18A") {values.itemnumber = 18; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "18B") {values.itemnumber = 18; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "19A") {values.itemnumber = 19; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "19B") {values.itemnumber = 19; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "20A") {values.itemnumber = 20; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "20B") {values.itemnumber = 20; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "21A") {values.itemnumber = 21; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "21B") {values.itemnumber = 21; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "22A") {values.itemnumber = 22; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "22B") {values.itemnumber = 22; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "23A") {values.itemnumber = 23; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "23B") {values.itemnumber = 23; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "24A") {values.itemnumber = 24; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "24B") {values.itemnumber = 24; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/stimulusframes = [1 = highimage, lowimage]
/ontrialend = [values.highimage = picture.highimage.currentitem; values.lowimage = picture.lowimage.currentitem]
/timeout = expressions.targetduration
/posttrialpause = values.target_posttrialpause
/branch = [trial.probe_HLL]
/recorddata = false
</trial>
Note: trial.probe_HLL
1. determines the position of the current probe
2. presents the probe in the low position
3. updates several measures
4. records the relevant data into the data file
<trial probe_HLL>
/ontrialbegin = [values.probetype = list.probetype.nextvalue]
/ontrialbegin = [values.probe_x = values.low_x]
/ontrialbegin = [values.probe_y = values.target_y]
/stimulusframes = [1 = probe]
/isvalidresponse = [trial.probe_HLL.response == values.responsekey_left || trial.probe_HLL.response == values.responsekey_right]
/monkeyresponse = (30, 35)
/iscorrectresponse = [(values.probetype == 1 && trial.probe_HLL.response == values.responsekey_left) ||
               (values.probetype == 2 && trial.probe_HLL.response == values.responsekey_right) ]
 
/ontrialend = [if (trial.probe_HLL.correct && trial.probe_HLL.latency >= values.minimum_latency) {
            values.sum_correct += 1;
            values.sum_correct_probeinlowposition_simple += 1;
            values.sumrt_probeinlowposition_simple += trial.probe_HLL.latency;
            values.meanrt_probeinlowposition_simple = values.sumrt_probeinlowposition_simple/values.sum_correct_probeinlowposition_simple}]
/timeout = (values.probeduration)
/branch = [if (values.task == 1 && trial.probe_HLL.error) trial.feedback else trial.intertrialinterval]
</trial>
******************************************BOTTOM/TOP
Note: trial.fixation_HLL
1) presents the fixation stimulus in the center of the screen
2) calls trial.targets_HLL
3) does not record any data (by default)
<trial fixation_HLL_y>
/ontrialbegin = [values.congruence = 2]
/stimulusframes = [1 = eraser, fixation]
/timeout = values.fixationduration
/branch = [trial.targets_HLL_y]
/posttrialpause = values.fixation_posttrialpause
/recorddata = false
</trial>
Note: trial.targets_HLL
1) determines the itemnumber of the current image and whether to show it right or left
2) presents the two images for a set amount of time (values.targetduration)
3) calls trial.probe_HLH
4) does not record any data (by default)
<trial targets_HLL_y>
/ontrialbegin = [values.selecteditem = list.HLL_items.nextvalue]
/ontrialbegin = [if (values.selecteditem == "1A") {values.itemnumber = 1; values.highposition = 1; values.high_y = values.target_top_y; values.low_y = values.target_bottom_y}]
/ontrialbegin = [if (values.selecteditem == "1B") {values.itemnumber = 1; values.highposition = 2; values.high_y = values.target_bottom_y; values.low_y = values.target_top_y}]
/ontrialbegin = [if (values.selecteditem == "2A") {values.itemnumber = 2; values.highposition = 1; values.high_y = values.target_top_y; values.low_y = values.target_bottom_y}]
/ontrialbegin = [if (values.selecteditem == "2B") {values.itemnumber = 2; values.highposition = 2; values.high_y = values.target_bottom_y; values.low_y = values.target_top_y}]
/ontrialbegin = [if (values.selecteditem == "3A") {values.itemnumber = 3; values.highposition = 1; values.high_y = values.target_top_y; values.low_y = values.target_bottom_y}]
/ontrialbegin = [if (values.selecteditem == "3B") {values.itemnumber = 3; values.highposition = 2; values.high_y = values.target_bottom_y; values.low_y = values.target_top_y}]
/ontrialbegin = [if (values.selecteditem == "4A") {values.itemnumber = 4; values.highposition = 1; values.high_y = values.target_top_y; values.low_y = values.target_bottom_y}]
/ontrialbegin = [if (values.selecteditem == "4B") {values.itemnumber = 4; values.highposition = 2; values.high_y = values.target_bottom_y; values.low_y = values.target_top_y}]
/ontrialbegin = [if (values.selecteditem == "5A") {values.itemnumber = 5; values.highposition = 1; values.high_y = values.target_top_y; values.low_y = values.target_bottom_y}]
/ontrialbegin = [if (values.selecteditem == "5B") {values.itemnumber = 5; values.highposition = 2; values.high_y = values.target_bottom_y; values.low_y = values.target_top_y}]
/ontrialbegin = [if (values.selecteditem == "6A") {values.itemnumber = 6; values.highposition = 1; values.high_y = values.target_top_y; values.low_y = values.target_bottom_y}]
/ontrialbegin = [if (values.selecteditem == "6B") {values.itemnumber = 6; values.highposition = 2; values.high_y = values.target_bottom_y; values.low_y = values.target_top_y}]
/ontrialbegin = [if (values.selecteditem == "7A") {values.itemnumber = 7; values.highposition = 1; values.high_y = values.target_top_y; values.low_y = values.target_bottom_y}]
/ontrialbegin = [if (values.selecteditem == "7B") {values.itemnumber = 7; values.highposition = 2; values.high_y = values.target_bottom_y; values.low_y = values.target_top_y}]
/ontrialbegin = [if (values.selecteditem == "8A") {values.itemnumber = 8; values.highposition = 1; values.high_y = values.target_top_y; values.low_y = values.target_bottom_y}]
/ontrialbegin = [if (values.selecteditem == "8B") {values.itemnumber = 8; values.highposition = 2; values.high_y = values.target_bottom_y; values.low_y = values.target_top_y}]
/ontrialbegin = [if (values.selecteditem == "9A") {values.itemnumber = 9; values.highposition = 1; values.high_y = values.target_top_y; values.low_y = values.target_bottom_y}]
/ontrialbegin = [if (values.selecteditem == "9B") {values.itemnumber = 9; values.highposition = 2; values.high_y = values.target_bottom_y; values.low_y = values.target_top_y}]
/ontrialbegin = [if (values.selecteditem == "10A") {values.itemnumber = 10; values.highposition = 1; values.high_y = values.target_top_y; values.low_y = values.target_bottom_y}]
/ontrialbegin = [if (values.selecteditem == "10B") {values.itemnumber = 10; values.highposition = 2; values.high_y = values.target_bottom_y; values.low_y = values.target_top_y}]
/ontrialbegin = [if (values.selecteditem == "11A") {values.itemnumber = 11; values.highposition = 1; values.high_y = values.target_top_y; values.low_y = values.target_bottom_y}]
/ontrialbegin = [if (values.selecteditem == "11B") {values.itemnumber = 11; values.highposition = 2; values.high_y = values.target_bottom_y; values.low_y = values.target_top_y}]
/ontrialbegin = [if (values.selecteditem == "12A") {values.itemnumber = 12; values.highposition = 1; values.high_y = values.target_top_y; values.low_y = values.target_bottom_y}]
/ontrialbegin = [if (values.selecteditem == "12B") {values.itemnumber = 12; values.highposition = 2; values.high_y = values.target_bottom_y; values.low_y = values.target_top_y}]
/ontrialbegin = [if (values.selecteditem == "13A") {values.itemnumber = 13; values.highposition = 1; values.high_y = values.target_top_y; values.low_y = values.target_bottom_y}]
/ontrialbegin = [if (values.selecteditem == "13B") {values.itemnumber = 13; values.highposition = 2; values.high_y = values.target_bottom_y; values.low_y = values.target_top_y}]
/ontrialbegin = [if (values.selecteditem == "14A") {values.itemnumber = 14; values.highposition = 1; values.high_y = values.target_top_y; values.low_y = values.target_bottom_y}]
/ontrialbegin = [if (values.selecteditem == "14B") {values.itemnumber = 14; values.highposition = 2; values.high_y = values.target_bottom_y; values.low_y = values.target_top_y}]
/ontrialbegin = [if (values.selecteditem == "15A") {values.itemnumber = 15; values.highposition = 1; values.high_y = values.target_top_y; values.low_y = values.target_bottom_y}]
/ontrialbegin = [if (values.selecteditem == "15B") {values.itemnumber = 15; values.highposition = 2; values.high_y = values.target_bottom_y; values.low_y = values.target_top_y}]
/ontrialbegin = [if (values.selecteditem == "16A") {values.itemnumber = 16; values.highposition = 1; values.high_y = values.target_top_y; values.low_y = values.target_bottom_y}]
/ontrialbegin = [if (values.selecteditem == "16B") {values.itemnumber = 16; values.highposition = 2; values.high_y = values.target_bottom_y; values.low_y = values.target_top_y}]
/ontrialbegin = [if (values.selecteditem == "17A") {values.itemnumber = 17; values.highposition = 1; values.high_y = values.target_top_y; values.low_y = values.target_bottom_y}]
/ontrialbegin = [if (values.selecteditem == "17B") {values.itemnumber = 17; values.highposition = 2; values.high_y = values.target_bottom_y; values.low_y = values.target_top_y}]
/ontrialbegin = [if (values.selecteditem == "18A") {values.itemnumber = 18; values.highposition = 1; values.high_y = values.target_top_y; values.low_y = values.target_bottom_y}]
/ontrialbegin = [if (values.selecteditem == "18B") {values.itemnumber = 18; values.highposition = 2; values.high_y = values.target_bottom_y; values.low_y = values.target_top_y}]
/ontrialbegin = [if (values.selecteditem == "19A") {values.itemnumber = 19; values.highposition = 1; values.high_y = values.target_top_y; values.low_y = values.target_bottom_y}]
/ontrialbegin = [if (values.selecteditem == "19B") {values.itemnumber = 19; values.highposition = 2; values.high_y = values.target_bottom_y; values.low_y = values.target_top_y}]
/ontrialbegin = [if (values.selecteditem == "20A") {values.itemnumber = 20; values.highposition = 1; values.high_y = values.target_top_y; values.low_y = values.target_bottom_y}]
/ontrialbegin = [if (values.selecteditem == "20B") {values.itemnumber = 20; values.highposition = 2; values.high_y = values.target_bottom_y; values.low_y = values.target_top_y}]
/ontrialbegin = [if (values.selecteditem == "21A") {values.itemnumber = 21; values.highposition = 1; values.high_y = values.target_top_y; values.low_y = values.target_bottom_y}]
/ontrialbegin = [if (values.selecteditem == "21B") {values.itemnumber = 21; values.highposition = 2; values.high_y = values.target_bottom_y; values.low_y = values.target_top_y}]
/ontrialbegin = [if (values.selecteditem == "22A") {values.itemnumber = 22; values.highposition = 1; values.high_y = values.target_top_y; values.low_y = values.target_bottom_y}]
/ontrialbegin = [if (values.selecteditem == "22B") {values.itemnumber = 22; values.highposition = 2; values.high_y = values.target_bottom_y; values.low_y = values.target_top_y}]
/ontrialbegin = [if (values.selecteditem == "23A") {values.itemnumber = 23; values.highposition = 1; values.high_y = values.target_top_y; values.low_y = values.target_bottom_y}]
/ontrialbegin = [if (values.selecteditem == "23B") {values.itemnumber = 23; values.highposition = 2; values.high_y = values.target_bottom_y; values.low_y = values.target_top_y}]
/ontrialbegin = [if (values.selecteditem == "24A") {values.itemnumber = 24; values.highposition = 1; values.high_y = values.target_top_y; values.low_y = values.target_bottom_y}]
/ontrialbegin = [if (values.selecteditem == "24B") {values.itemnumber = 24; values.highposition = 2; values.high_y = values.target_bottom_y; values.low_y = values.target_top_y}]
/stimulusframes = [1 = highimage_y, lowimage_y]
/ontrialend = [values.highimage_y = picture.highimage_y.currentitem; values.lowimage_y = picture.lowimage_y.currentitem]
/timeout = expressions.targetduration
/posttrialpause = values.target_posttrialpause
/branch = [trial.probe_HLL_y]
/recorddata = false
</trial>
Note: trial.probe_HLL
1. determines the position of the current probe
2. presents the probe in the low position
3. updates several measures
4. records the relevant data into the data file
<trial probe_HLL_y>
/ontrialbegin = [values.probetype = list.probetype.nextvalue]
/ontrialbegin = [values.probe_x = values.target_x]
/ontrialbegin = [values.probe_y = values.low_y]
/stimulusframes = [1 = probe]
/isvalidresponse = [trial.probe_HLL_y.response == values.responsekey_left || trial.probe_HLL_y.response == values.responsekey_right]
/monkeyresponse = (30, 35)
/iscorrectresponse = [(values.probetype == 1 && trial.probe_HLL_y.response == values.responsekey_left) ||
               (values.probetype == 2 && trial.probe_HLL_y.response == values.responsekey_right) ]
 
/ontrialend = [if (trial.probe_HLL_y.correct && trial.probe_HLL_y.latency >= values.minimum_latency) {
            values.sum_correct += 1;
            values.sum_correct_probeinlowposition_simple += 1;
            values.sumrt_probeinlowposition_simple += trial.probe_HLL_y.latency;
            values.meanrt_probeinlowposition_simple = values.sumrt_probeinlowposition_simple/values.sum_correct_probeinlowposition_simple}]
/timeout = (values.probeduration)
/branch = [if (values.task == 1 && trial.probe_HLL_y.error) trial.feedback else trial.intertrialinterval]
</trial>

Probe in "Peudohigh" Position (HLH) : Trial Sequence
because there is no high in the filler trials
one item of the filler pairs is considered 
a pseudo-high for the purpose of this script
********************************************
Note: trial.fixation_filler_HHH
1) presents the fixation stimulus in the center of the screen
2) calls trial.targets_HLH
3) does not record any data (by default)
<trial fixation_filler_HHH>
/ontrialbegin = [values.congruence = 0]
/stimulusframes = [1 = eraser, fixation]
/timeout = values.fixationduration
/branch = [trial.targets_filler_HHH]
/posttrialpause = values.fixation_posttrialpause
/recorddata = false
</trial>
Note: trial.targets_filler_HHH
1) determines the itemnumber of the current image and whether to show it right or left
2) presents the two images for a set amount of time (values.targetduration)
3) calls trial.probe_filler_HHH
4) does not record any data (by default)
<trial targets_filler_HHH>
/ontrialbegin = [values.selecteditem = list.filler_HHH_items.nextvalue]
/ontrialbegin = [if (values.selecteditem == "1A") {values.itemnumber = 1; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "1B") {values.itemnumber = 1; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "2A") {values.itemnumber = 2; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "2B") {values.itemnumber = 2; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "3A") {values.itemnumber = 3; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "3B") {values.itemnumber = 3; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "4A") {values.itemnumber = 4; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "4B") {values.itemnumber = 4; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "5A") {values.itemnumber = 5; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "5B") {values.itemnumber = 5; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "6A") {values.itemnumber = 6; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "6B") {values.itemnumber = 6; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "7A") {values.itemnumber = 7; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "7B") {values.itemnumber = 7; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "8A") {values.itemnumber = 8; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "8B") {values.itemnumber = 8; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "9A") {values.itemnumber = 9; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "9B") {values.itemnumber = 9; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "10A") {values.itemnumber = 10; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "10B") {values.itemnumber = 10; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "11A") {values.itemnumber = 11; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "11B") {values.itemnumber = 11; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "12A") {values.itemnumber = 12; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "12B") {values.itemnumber = 12; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "13A") {values.itemnumber = 13; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "13B") {values.itemnumber = 13; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "14A") {values.itemnumber = 14; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "14B") {values.itemnumber = 14; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "15A") {values.itemnumber = 15; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "15B") {values.itemnumber = 15; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "16A") {values.itemnumber = 16; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "16B") {values.itemnumber = 16; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "17A") {values.itemnumber = 17; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "17B") {values.itemnumber = 17; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "18A") {values.itemnumber = 18; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "18B") {values.itemnumber = 18; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "19A") {values.itemnumber = 19; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "19B") {values.itemnumber = 19; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "20A") {values.itemnumber = 20; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "20B") {values.itemnumber = 20; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "21A") {values.itemnumber = 21; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "21B") {values.itemnumber = 21; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "22A") {values.itemnumber = 22; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "22B") {values.itemnumber = 22; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "23A") {values.itemnumber = 23; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "23B") {values.itemnumber = 23; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/ontrialbegin = [if (values.selecteditem == "24A") {values.itemnumber = 24; values.highposition = 1; values.high_x = values.target_right_x; values.low_x = values.target_left_x}]
/ontrialbegin = [if (values.selecteditem == "24B") {values.itemnumber = 24; values.highposition = 2; values.high_x = values.target_left_x; values.low_x = values.target_right_x}]
/stimulusframes = [1 = highimage, lowimage]
/ontrialend = [values.highimage = picture.highimage.currentitem; values.lowimage = picture.fillerhighimage.currentitem]
/timeout = expressions.targetduration
/posttrialpause = values.target_posttrialpause
/branch = [trial.probe_filler_HHH]
/recorddata = false
</trial>
Note: trial.probe_filler_HHH
1. the position of the current probe
2. presents the probe in the high position
3. updates several measures
4. records the relevant data into the data file
<trial probe_filler_HHH>
/ontrialbegin = [values.probetype = list.probetype.nextvalue]
/ontrialbegin = [values.probe_x = values.high_x]
/ontrialbegin = [values.probe_y = values.target_y]
/stimulusframes = [1 = probe]
/isvalidresponse = [trial.probe_filler_HHH.response == values.responsekey_left || trial.probe_filler_HHH.response == values.responsekey_right]
/monkeyresponse = (30, 35)
/iscorrectresponse = [(values.probetype == 1 && trial.probe_filler_HHH.response == values.responsekey_left) ||
               (values.probetype == 2 && trial.probe_filler_HHH.response == values.responsekey_right) ]
/timeout = (values.probeduration)
/branch = [if (values.task == 1 && trial.probe_filler_HHH.error) trial.feedback else trial.intertrialinterval]
</trial>
<trial rest>
/trialduration = 25000 
/stimulusframes= [1 = break1]
/recorddata = false
/branch = [trial.rest2]
</trial>
<trial rest2>
/timeout = 5000
/stimulusframes= [1 = break2]
</trial>
********************************************
Miscelleneous trials
********************************************
<trial feedback>
/stimulusframes = [1 = feedback]
/timeout = 500
/recorddata = false
/branch = [trial.intertrialinterval]
</trial>
<trial intertrialinterval>
/timeout = expressions.probe_posttrialpause
/recorddata = false
</trial>
*******************************************************************************************************************
*******************************************************************************************************************
EXPERIMENTAL BLOCKS
*******************************************************************************************************************
*******************************************************************************************************************
Note: 
* presents 10 practice trials (see Miller & Fillmore, 2010)
<block Practice>
/onblockbegin = [values.task = 1]
/postinstructions = (practice)
/trials = [1-10 = noreplace(fixation_HLH, fixation_HLL, fixation_filler_HHH, fixation_filler_LLL, fixation_HLH_y, fixation_HLL_y, fixation_filler_HHH_y, fixation_filler_LLL_y)]
</block>
Note: presents 160 trials, randomly samples from all 4 conditions
<block highDotProbeTask>
/onblockbegin = [values.task = 2]
/onblockbegin = [values.sum_correct = 0;
   values.sum_correct_probeinhighposition_simple = 0;
   values.sum_correct_probeinlowposition_simple= 0;
   values.sumrt_probeinhighposition_simple = 0;
   values.sumrt_probeinlowposition_simple = 0;
   values.meanrt_probeinhighposition_simple = 0;
   values.meanrt_probeinlowposition_simple = 0]
/trials = [1-40, 42-81, 83-122, 124-163 = noreplace(fixation_HLH, fixation_HLL, fixation_filler_HHH, fixation_filler_LLL, fixation_HLH_y, fixation_HLL_y, fixation_filler_HHH_y, fixation_filler_LLL_y); 41, 82, 123 = rest]
</block>
*******************************************************************************************************************
*******************************************************************************************************************
EXPERIMENT
*******************************************************************************************************************
*******************************************************************************************************************
<expt >
/preinstructions = (instructions)
/postinstructions = (thankyou)
/blocks = [1 = Practice; 2 = highDotProbeTask]
</expt>
Note: debug element
<monkey>
/ latencydistribution = normal(300, 50)
</monkey>


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: 108K
> 1) How come the data entry
> for sum_correct_probeinhighposition_simple, sum_correct_probeinlowposition_simple, sumrt_probeinhighposition_simple
>, sumrt_probeinlowposition_simple, meanrt_probeinhighposition_simple, meanrt_probeinlowposition_simple all showed up as 0
> in the raw data sheet?




You initialize them with a value of zero:

/onblockbegin = [values.sum_correct = 0;
   values.sum_correct_probeinhighposition_simple = 0;
   values.sum_correct_probeinlowposition_simple= 0;
   values.sumrt_probeinhighposition_simple = 0;
   values.sumrt_probeinlowposition_simple = 0;
   values.meanrt_probeinhighposition_simple = 0;
   values.meanrt_probeinlowposition_simple = 0]

Then you conditionally update them if and only if the response given is *correct* AND the response's latency is *greater than a specified minimum*

/ontrialend = [if (trial.probe_HLH.correct && trial.probe_HLH.latency >= values.minimum_latency) {
            values.sum_correct += 1; ...]

The minimum latency you specified is 1000 ms
<values>
...
/minimum_latency = 1000
...
</values>

For any latency below that, no update will occur (the condition you specified will not evaluate to true). Since you *also* set the /timeout for the respective <trial>s to 1000ms (/probeduration = 1000) via

/timeout = values.probeduration

it immediately follows that latency *can never be greater than 1000ms* and no update will ever occur. Inquisit behaves exactly as you instructed it to behave.

> Also, is there any way to record the values of "targetduration = rand(30,750)" and "probe_posttrialpause = rand(250,750)" for
> each trial? For now I have them under <expression> Even though it's random, I wanted to record the timing for each trial.

Store them in a <values> entries and log the respective values to the data file just like all the others.

> 2) Can the presentation size for the images be standardized for different computer monitors? The images I presented seemed > more unrealistic when presented in large monitors compared to in small monitors.

It is unclear what exactly you mean by "standardized". If you want to size images in terms of percentages of a given screen size, you should take care that your images have sufficient resolution to accommodate for high-resolution displays (so they don't look like crap because of massive upscaling). Otherwise, consider making use of the <defaults> element's /canvassize and /canvasaspectratio to restrict display to a specifically sized screen-region across displays. Details for said attributes are available in the documentation.

> 3) Is there an easy way to present an outline of the four quadrants at the time the fixation cross is presented? My dotprobe
> task would have picture pairs appearing either right/left, or top/bottom of the screen, so I would like to outline where the
> pictures might end up.

Set up two rectangular <shape> elements (one as a horizontal "line", one as a vertical "line) and display them in your <trial>s just like any other stimulus.

A personal request, if I may: Please avoid pasting massive amounts of code into a thread. If you must provide large amounts of code, please use the forum's file attachment facilities.

mchu01
mchu01
Respected Member (499 reputation)Respected Member (499 reputation)Respected Member (499 reputation)Respected Member (499 reputation)Respected Member (499 reputation)Respected Member (499 reputation)Respected Member (499 reputation)Respected Member (499 reputation)Respected Member (499 reputation)
Group: Forum Members
Posts: 4, Visits: 97
Hi Dave,

Thank you so much for your help! My apologies for posting excessive code in the forum. Will make sure that I won't do it again.

Thanks,
Michael

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search