Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Generated by OpenSesame 0.27.4 (Frisky Freud)
- # Wed Oct 2 19:55:17 2013 (posix)
- # <http://www.cogsci.nl/opensesame>
- set foreground "white"
- set subject_parity "even"
- set description "A template containing a practice and an experimental phase"
- set title "Extended template"
- set compensation "0"
- set coordinates "relative"
- set height "768"
- set mouse_backend "xpyriment"
- set width "1024"
- set sampler_backend "legacy"
- set keyboard_backend "legacy"
- set background "black"
- set subject_nr "0"
- set canvas_backend "xpyriment"
- set start "experiment"
- set synth_backend "legacy"
- define inline_script create_list
- set _run ""
- ___prepare__
- # Create the to-be-filled list:
- digitSpan = []
- # And make it global so that it can be used in future inline_script items as well:
- global digitSpan
- __end__
- set description "Executes Python code"
- define loop block_loop
- set repeat "1"
- set description "A single block of trials"
- set item "trial_sequence"
- set column_order "currentDigit"
- set cycles "10"
- set order "random"
- setcycle 0 currentDigit "1"
- setcycle 1 currentDigit "2"
- setcycle 2 currentDigit "3"
- setcycle 3 currentDigit "4"
- setcycle 4 currentDigit "5"
- setcycle 5 currentDigit "6"
- setcycle 6 currentDigit "7"
- setcycle 7 currentDigit "8"
- setcycle 8 currentDigit "9"
- setcycle 9 currentDigit "10"
- run trial_sequence
- define inline_script append_to_list
- set _run ""
- ___prepare__
- digitSpan.append(self.get('currentDigit'))
- print digitSpan
- __end__
- set description "Executes Python code"
- define sketchpad sketchpad
- set duration "0"
- set description "Displays stimuli"
- set start_response_interval "no"
- draw textline 0.0 -192.0 "[currentDigit]" center=1 color=white font_family="mono" font_size=18 font_italic=no font_bold=no show_if="always" html="yes"
- define sequence experiment
- set flush_keyboard "yes"
- set description "The main sequence of the experiment"
- run experimental_loop "always"
- define sequence trial_sequence
- set flush_keyboard "yes"
- set description "A single trial"
- run sketchpad "always"
- run append_to_list "always"
- run keyboard_response "always"
- run logger "always"
- define loop experimental_loop
- set repeat "1"
- set description "A loop containing one or more experimental blocks"
- set item "block_sequence"
- set column_order "practice"
- set cycles "1"
- set order "random"
- setcycle 0 practice "no"
- run block_sequence
- define keyboard_response keyboard_response
- set description "Collects keyboard responses"
- set timeout "infinite"
- set flush "yes"
- define logger logger
- set description "Logs experimental data"
- define sequence block_sequence
- set flush_keyboard "yes"
- set description "A sequence containing a single block of trials followed by feedback to the participant"
- run create_list "always"
- run block_loop "always"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement