Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- API: 2
- OpenSesame: 3.1.4b1
- Platform: posix
- ---
- set width 1024
- set uniform_coordinates no
- set title "New experiment"
- set synth_backend legacy
- set subject_parity even
- set subject_nr 0
- set start experiment
- set sound_sample_size -16
- set sound_freq 48000
- set sound_channels 2
- set sound_buf_size 1024
- set sampler_backend legacy
- set round_decimals 2
- set mouse_backend psycho
- set keyboard_backend psycho
- set height 768
- set fullscreen no
- set form_clicks no
- set foreground white
- set font_underline no
- set font_size 18
- set font_italic no
- set font_family mono
- set font_bold no
- set experiment_path "/home/eeg/Desktop/EEG related"
- set disable_garbage_collection yes
- set description "Default description"
- set coordinates relative
- set compensation 0
- set color_backend psycho
- set clock_backend psycho
- set canvas_backend psycho
- set bidi no
- set background black
- define inline_script _inline_script
- set description "Executes Python code"
- ___run__
- # The random function randint() returns a random integer between a certain
- # minimum and maximum value:
- random_time = random.randint(1000,1500)
- # To set the variable for future use in the interface, the name of variable should
- # be a string (i.e. put between quotes), whereas the value should not:
- self.experiment.set("random_delay", random_time)
- __end__
- set _prepare ""
- define logger event_log
- set use_quotes no
- set ignore_missing no
- set description "Logs experimental data"
- set auto_log no
- log start
- log category
- log number
- log time_experiment_started
- log count_experiment_started
- log random_delay
- log time_event_log
- log count_event_log
- log time_experiment
- log count_experiment
- log time_start_connection
- log count_start_connection
- log time_fixation
- log count_fixation
- log time_target
- log count_target
- define sequence experiment
- set flush_keyboard yes
- set description "Runs a number of items in sequence"
- run inline_script always
- run welcome always
- run face_house_loop always
- run feedback always
- define loop face_house_loop
- set source_file ""
- set source table
- set repeat 6
- set order random
- set item face_house_sequence
- set description "Repeatedly runs another item"
- set cycles 32
- set continuous no
- set column_order "category;number"
- set break_if_on_first yes
- set break_if never
- setcycle 0 category face
- setcycle 0 number 1
- setcycle 1 category face
- setcycle 1 number 2
- setcycle 2 category face
- setcycle 2 number 3
- setcycle 3 category face
- setcycle 3 number 4
- setcycle 4 category face
- setcycle 4 number 5
- setcycle 5 category face
- setcycle 5 number 6
- setcycle 6 category face
- setcycle 6 number 7
- setcycle 7 category face
- setcycle 7 number 8
- setcycle 8 category face
- setcycle 8 number 9
- setcycle 9 category face
- setcycle 9 number 10
- setcycle 10 category face
- setcycle 10 number 11
- setcycle 11 category face
- setcycle 11 number 12
- setcycle 12 category face
- setcycle 12 number 13
- setcycle 13 category face
- setcycle 13 number 14
- setcycle 14 category face
- setcycle 14 number 15
- setcycle 15 category face
- setcycle 15 number 16
- setcycle 16 category car
- setcycle 16 number 1
- setcycle 17 category car
- setcycle 17 number 2
- setcycle 18 category car
- setcycle 18 number 3
- setcycle 19 category car
- setcycle 19 number 4
- setcycle 20 category car
- setcycle 20 number 5
- setcycle 21 category car
- setcycle 21 number 6
- setcycle 22 category car
- setcycle 22 number 7
- setcycle 23 category car
- setcycle 23 number 8
- setcycle 24 category car
- setcycle 24 number 9
- setcycle 25 category car
- setcycle 25 number 10
- setcycle 26 category car
- setcycle 26 number 11
- setcycle 27 category car
- setcycle 27 number 12
- setcycle 28 category car
- setcycle 28 number 13
- setcycle 29 category car
- setcycle 29 number 14
- setcycle 30 category car
- setcycle 30 number 15
- setcycle 31 category car
- setcycle 31 number 16
- run face_house_sequence
- define sequence face_house_sequence
- set flush_keyboard yes
- set description "Runs a number of items in sequence"
- run fixation always
- run target always
- run new_inline_script always
- run new_advanced_delay always
- run event_log always
- run _inline_script always
- define feedback feedback
- set reset_variables yes
- set duration keypress
- set description "Provides feedback to the participant"
- define sketchpad fixation
- set start_response_interval no
- set reset_variables no
- set duration "[random_delay]"
- set description "Displays stimuli"
- set background black
- draw line color=grey penwidth=1 show_if=always x1=0 x2=0 y1=-46 y2=-14 z_index=1
- draw line color=grey penwidth=1 show_if=always x1=-16 x2=16 y1=-30 y2=-30 z_index=1
- define inline_script inline_script
- set description "Executes Python code"
- ___run__
- # Import the Python module random:
- import random
- # The random function randint() returns a random integer between a certain
- # minimum and maximum value:
- random_time = random.randint(500,750)
- # To set the variable for future use in the interface, the name of variable should
- # be a string (i.e. put between quotes), whereas the value should not:
- self.experiment.set("random_delay", random_time)
- __end__
- set _prepare ""
- define advanced_delay new_advanced_delay
- set jitter_mode Uniform
- set jitter 0
- set duration 250
- set description "Waits for a specified duration"
- define inline_script new_inline_script
- set description "Executes Python code"
- ___run__
- from datetime import datetime
- var.my_system_time = datetime.now().strftime('%d-%m-%y %H:%M:%f')
- __end__
- set _prepare ""
- define sketchpad target
- # draw line 0 -16 0 16 color="grey" penwidth=1 z_index=1 show_if="always"
- # draw line -16 0 16 0 color="grey" penwidth=1 z_index=1 show_if="always"
- set start_response_interval no
- set reset_variables no
- set duration 0
- set description "Displays stimuli"
- set background black
- draw image center=1 file="[category]_[number].png" scale=0.5 show_if=always x=0 y=0 z_index=2
- draw line color=grey penwidth=1 show_if=always x1=0 x2=0 y1=-46 y2=-16 z_index=1
- draw line color=grey penwidth=1 show_if=always x1=-16 x2=16 y1=-30 y2=-30 z_index=1
- define sketchpad welcome
- set start_response_interval no
- set reset_variables no
- set duration keypress
- set description "Displays stimuli"
- draw textline center=1 color=white font_bold=no font_family=serif font_italic=no font_size=32 html=yes show_if=always text="OpenSesame 2.9.7 <i>Hesitant Heisenberg</i>" x=0 y=0 z_index=0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement