ERTS Script Language: Example

This example defines a visual search paradigm with the words ‘left’ and ‘right’ being the two possible targets. Subjects have to simply responds left or right depending on the target. There are two distractor conditions: half of the trials digits will be shown, and the other half of the trials numbers are shown written out as words.

SCREENAREA 150 150

FONT STD Arial 6
FONT Big Arial 10 1 bold
FONT Small Arial 4

; system settings
PICTURE Inst_Title T
Instruction

PICTURE Inst_Text Tl
Press left [SHL]-key when you see the word Left

Press right [SHR]-key when you see the word Right

PICTURE Start T
Press one of the response keys to start !

; instructions
PICTURE Left N
PICTURE Right N
PICTURE Fix P 1
010
111
010

PICTURE One N
PICTURE Two N
PICTURE Three N
PICTURE Four N
PICTURE Five N
PICTURE Six N
PICTURE Seven N
PICTURE Eight N
PICTURE Nine N

PICTURE 1 N
PICTURE 2 N
PICTURE 3 N
PICTURE 4 N
PICTURE 5 N
PICTURE 6 N
PICTURE 7 N
PICTURE 8 N
PICTURE 9 N

; stimulus material
SET Digits V 1,2,3,4,5,6,7,8,9
SET Words V One,Two,Three,Four,Five,Six,Seven,Eight,Nine

; set definitions
; for random selection
KEY Press
SHL SHR SPACE

; response keys
POSITION Circle C 0,0 80 0 6
POSITION Center P 0 0
POSITION Title P 0 -40
POSITION Press P 0 40

; definition of screen positions
TRIAL Instruct
SF Big
&SP ? Title
SF STD
&SP ? Center
SF Small
&SP ? Press 1 ?
WK Press
SF STD

; trial definition to
; show instruction
TRIAL T1
MP Circle
SP Fix Center 1 500
RK Press
FP ?=target Circle 1 3000 ?=distractors 6 1
CS 1000

; trial definition
; with variable parameters (?)
; to show variable target with
; distractors on a circle
BLOCK b1 2 2
Dig: 1 T1 Left Digits
Dig: 1 T1 Right Digits
Wrd: 1 T1 Left Words
Wrd: 1 T1 Right Words

; block definition
; binding variable parameters
; of trials (?) with values
SESSION Visual Search
RUNTRIAL Instruct Inst_Title Inst_Text Start 500
RUNBLOCKW b1 4 0
RUNBLOCK b1 40 2
; session definition
; with instruction
; warm-up block
; valid block