--- API: 2.1 OpenSesame: 3.3.3 Platform: nt --- set width 1024 set uniform_coordinates yes set title "New experiment" 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 round_decimals 2 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 "C:\\Users\\Deiniol\\OneDrive\\Documents\\Teaching\\Psychology\\Fundamentals of Cognition\\CogShops\\PRP RUN" set disable_garbage_collection yes set description "The main experiment item" set coordinates uniform set compensation 0 set canvas_backend xpyriment set background black define sketchpad DELAY set duration "[ITI]" set description "Displays stimuli" define form_text_display Instructions1 set timeout infinite set spacing 10 set rows "1;4;1" set only_render no set ok_text Ok set margins "50;50;50;50" set form_title Title __form_text__ Welcome to the PRP experiemnt. In this experiemnt, you will see a green circle in the top half of the screen then a red circle in the bottom half of the screen. Respond to the green circle using the Z button on the keyboard. Respond to the red circle using the M button on the keyboard. You have to be fast!!! Respond as QUICKLY and as ACCURATLY as you can. The first set of trials are practice trials The second and third set of trials are the real experiemnt. Press Ok when you are ready for the practice trials. __end__ set description "A simple text display form" set cols "1;1;1" set _theme gray widget 0 0 3 1 label text="[form_title]" widget 0 1 3 1 label center=no text="[form_text]" widget 1 2 1 1 button text="[ok_text]" define loop Practice_loop set source_file "" set source table set repeat 1 set order random set description "Repeatedly runs another item" set cycles 12 set continuous no set break_if_on_first yes set break_if never setcycle 0 SOA 100 setcycle 0 stim1response z setcycle 0 stim2response m setcycle 0 TrialType practice setcycle 1 SOA 100 setcycle 1 stim1response z setcycle 1 stim2response m setcycle 1 TrialType practice setcycle 2 SOA 100 setcycle 2 stim1response z setcycle 2 stim2response m setcycle 2 TrialType practice setcycle 3 SOA 100 setcycle 3 stim1response z setcycle 3 stim2response m setcycle 3 TrialType practice setcycle 4 SOA 200 setcycle 4 stim1response z setcycle 4 stim2response m setcycle 4 TrialType practice setcycle 5 SOA 200 setcycle 5 stim1response z setcycle 5 stim2response m setcycle 5 TrialType practice setcycle 6 SOA 200 setcycle 6 stim1response z setcycle 6 stim2response m setcycle 6 TrialType practice setcycle 7 SOA 200 setcycle 7 stim1response z setcycle 7 stim2response m setcycle 7 TrialType practice setcycle 8 SOA 400 setcycle 8 stim1response z setcycle 8 stim2response m setcycle 8 TrialType practice setcycle 9 SOA 400 setcycle 9 stim1response z setcycle 9 stim2response m setcycle 9 TrialType practice setcycle 10 SOA 400 setcycle 10 stim1response z setcycle 10 stim2response m setcycle 10 TrialType practice setcycle 11 SOA 400 setcycle 11 stim1response z setcycle 11 stim2response m setcycle 11 TrialType practice run trial_sequence define sketchpad Stim1 set duration 0 set description "Displays stimuli" draw circle color=green fill=1 penwidth=1 r=50.192885125 show_if=always x=0 y=-128 z_index=0 define sketchpad Stim2 set duration 0 set description "Displays stimuli" draw circle color=green fill=1 penwidth=1 r=50.192885125 show_if=always x=0 y=-128 z_index=0 draw circle color=red fill=1 penwidth=1 r=50.192885125 show_if=always x=0 y=128 z_index=0 define sequence experiment set flush_keyboard yes set description "Runs a number of items in sequence" run Instructions1 always run Practice_loop always run new_form_text_display always define coroutines new_coroutines set function_name "" set flush_keyboard yes set end_after_item response2 set duration 3000 set description "Run items simultaneously" run Stim1 end=0 runif=always start=0 run response1 end=3000 runif=always start=0 run Stim2 end="[SOA]" runif=always start="[SOA]" run response2 end=3000 runif=always start="[SOA]" define form_text_display new_form_text_display set timeout infinite set spacing 10 set rows "1;4;1" set only_render no set ok_text Ok set margins "50;50;50;50" set form_title Title __form_text__ Well done, you made it! Now we can look to see if you have a processing bottleneck. Just sit back and relax a minute and wait for everyoone else to finish. Remember the cinema rules. Press Ok to end the experiemnt. __end__ set description "A simple text display form" set cols "1;1;1" set _theme gray widget 0 0 3 1 label text="[form_title]" widget 0 1 3 1 label center=no text="[form_text]" widget 1 2 1 1 button text="[ok_text]" define logger new_logger set description "Logs experimental data" set auto_log yes define sketchpad new_sketchpad set duration 500 set description "Displays stimuli" define keyboard_response response1 set timeout infinite set flush no set event_type keypress set duration keypress set description "Collects keyboard responses" set correct_response "[stim1response]" set allowed_responses z define keyboard_response response2 set timeout infinite set flush no set event_type keypress set duration keypress set description "Collects keyboard responses" set correct_response "[stim2response]" set allowed_responses m define sequence trial_sequence set flush_keyboard yes set description "Runs a number of items in sequence" run new_sketchpad always run new_coroutines always run new_logger always run variableISI always run DELAY always define inline_script variableISI set description "Executes Python code" set _run "" ___prepare__ # Determine random ITI # Make a list of potential durations, between 400–600 ms, with steps of # 10 ms (change the step size if wanted): var.step_size = 100 var.start_val = 500 var.end_val = 1000 l = range(var.start_val, var.end_val, var.step_size) # Shuffle the list: import random var.ITI = random.choice(l) # You can now use the variable ITI, by using the square-brackets method, # in the sketchpad of which you want to vary the duration __end__