Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Generated by OpenSesame 0.27.4 (Frisky Freud)
- # Sat Nov 09 11:28:04 2013 (nt)
- # <http://www.cogsci.nl/opensesame>
- set mouse_backend "xpyriment"
- set subject_parity "even"
- set height "768"
- set font_family "sans"
- set font_italic "no"
- set custom_cursor "yes"
- set synth_backend "legacy"
- set title "visuospatial_1234"
- set coordinates "relative"
- set start "experiment"
- set sampler_backend "legacy"
- set transparent_variables "no"
- set foreground "Black"
- set font_bold "no"
- set description "Default description"
- set background "White"
- set font_size "20"
- set enable_escape "yes"
- set keyboard_backend "legacy"
- set canvas_backend "xpyriment"
- set compensation "0"
- set subject_nr "0"
- set width "1024"
- define loop s3_block_loop
- set repeat "1"
- set description "Repeatedly runs another item"
- set skip "0"
- set item "s3_trial_sequence"
- set column_order "match;frame_colour;pair_colour;line_style;correct_response"
- set cycles "50"
- set order "sequential"
- setcycle 0 pair_colour "Black"
- setcycle 0 correct_response ""
- setcycle 0 frame_colour "Black"
- setcycle 0 line_style ""
- setcycle 0 match "n"
- setcycle 1 pair_colour "Black"
- setcycle 1 correct_response ""
- setcycle 1 frame_colour "Black"
- setcycle 1 line_style ""
- setcycle 1 match "y"
- setcycle 2 pair_colour "Black"
- setcycle 2 correct_response ""
- setcycle 2 frame_colour "Black"
- setcycle 2 line_style ""
- setcycle 2 match "y"
- setcycle 3 pair_colour "Black"
- setcycle 3 correct_response ""
- setcycle 3 frame_colour "Black"
- setcycle 3 line_style ""
- setcycle 3 match "n"
- setcycle 4 pair_colour "Red"
- setcycle 4 correct_response "2"
- setcycle 4 frame_colour "Black"
- setcycle 4 line_style ""
- setcycle 4 match "n"
- setcycle 5 pair_colour "Black"
- setcycle 5 correct_response ""
- setcycle 5 frame_colour "Black"
- setcycle 5 line_style ""
- setcycle 5 match "y"
- setcycle 6 pair_colour "Black"
- setcycle 6 correct_response ""
- setcycle 6 frame_colour "Black"
- setcycle 6 line_style ""
- setcycle 6 match "n"
- setcycle 7 pair_colour "Black"
- setcycle 7 correct_response ""
- setcycle 7 frame_colour "Black"
- setcycle 7 line_style ""
- setcycle 7 match "y"
- setcycle 8 pair_colour "Black"
- setcycle 8 correct_response ""
- setcycle 8 frame_colour "Black"
- setcycle 8 line_style ""
- setcycle 8 match "y"
- setcycle 9 pair_colour "Black"
- setcycle 9 correct_response "3"
- setcycle 9 frame_colour "Black"
- setcycle 9 line_style "dash"
- setcycle 9 match "n"
- setcycle 10 pair_colour "Black"
- setcycle 10 correct_response ""
- setcycle 10 frame_colour "Black"
- setcycle 10 line_style ""
- setcycle 10 match "y"
- setcycle 11 pair_colour "Black"
- setcycle 11 correct_response ""
- setcycle 11 frame_colour "Black"
- setcycle 11 line_style ""
- setcycle 11 match "n"
- setcycle 12 pair_colour "Black"
- setcycle 12 correct_response ""
- setcycle 12 frame_colour "Black"
- setcycle 12 line_style ""
- setcycle 12 match "n"
- setcycle 13 pair_colour "Black"
- setcycle 13 correct_response ""
- setcycle 13 frame_colour "Black"
- setcycle 13 line_style ""
- setcycle 13 match "y"
- setcycle 14 pair_colour "Black"
- setcycle 14 correct_response ""
- setcycle 14 frame_colour "Black"
- setcycle 14 line_style ""
- setcycle 14 match "n"
- setcycle 15 pair_colour "Black"
- setcycle 15 correct_response ""
- setcycle 15 frame_colour "Black"
- setcycle 15 line_style ""
- setcycle 15 match "y"
- setcycle 16 pair_colour "Black"
- setcycle 16 correct_response ""
- setcycle 16 frame_colour "Black"
- setcycle 16 line_style ""
- setcycle 16 match "n"
- setcycle 17 pair_colour "Black"
- setcycle 17 correct_response ""
- setcycle 17 frame_colour "Black"
- setcycle 17 line_style ""
- setcycle 17 match "n"
- setcycle 18 pair_colour "Black"
- setcycle 18 correct_response ""
- setcycle 18 frame_colour "Black"
- setcycle 18 line_style ""
- setcycle 18 match "y"
- setcycle 19 pair_colour "Black"
- setcycle 19 correct_response ""
- setcycle 19 frame_colour "Black"
- setcycle 19 line_style ""
- setcycle 19 match "y"
- setcycle 20 pair_colour "Black"
- setcycle 20 correct_response ""
- setcycle 20 frame_colour "Black"
- setcycle 20 line_style ""
- setcycle 20 match "y"
- setcycle 21 pair_colour "Black"
- setcycle 21 correct_response ""
- setcycle 21 frame_colour "Black"
- setcycle 21 line_style ""
- setcycle 21 match "y"
- setcycle 22 pair_colour "Black"
- setcycle 22 correct_response ""
- setcycle 22 frame_colour "Black"
- setcycle 22 line_style ""
- setcycle 22 match "y"
- setcycle 23 pair_colour "Black"
- setcycle 23 correct_response ""
- setcycle 23 frame_colour "Black"
- setcycle 23 line_style ""
- setcycle 23 match "y"
- setcycle 24 pair_colour "Black"
- setcycle 24 correct_response ""
- setcycle 24 frame_colour "Black"
- setcycle 24 line_style ""
- setcycle 24 match "n"
- setcycle 25 pair_colour "Black"
- setcycle 25 correct_response ""
- setcycle 25 frame_colour "Black"
- setcycle 25 line_style ""
- setcycle 25 match "n"
- setcycle 26 pair_colour "Black"
- setcycle 26 correct_response ""
- setcycle 26 frame_colour "Black"
- setcycle 26 line_style ""
- setcycle 26 match "n"
- setcycle 27 pair_colour "Black"
- setcycle 27 correct_response ""
- setcycle 27 frame_colour "Black"
- setcycle 27 line_style ""
- setcycle 27 match "y"
- setcycle 28 pair_colour "Black"
- setcycle 28 correct_response ""
- setcycle 28 frame_colour "Black"
- setcycle 28 line_style ""
- setcycle 28 match "n"
- setcycle 29 pair_colour "Black"
- setcycle 29 correct_response "1"
- setcycle 29 frame_colour "Orange"
- setcycle 29 line_style ""
- setcycle 29 match "y"
- setcycle 30 pair_colour "Black"
- setcycle 30 correct_response ""
- setcycle 30 frame_colour "Black"
- setcycle 30 line_style ""
- setcycle 30 match "y"
- setcycle 31 pair_colour "Black"
- setcycle 31 correct_response ""
- setcycle 31 frame_colour "Black"
- setcycle 31 line_style ""
- setcycle 31 match "n"
- setcycle 32 pair_colour "Black"
- setcycle 32 correct_response ""
- setcycle 32 frame_colour "Black"
- setcycle 32 line_style ""
- setcycle 32 match "y"
- setcycle 33 pair_colour "Black"
- setcycle 33 correct_response ""
- setcycle 33 frame_colour "Black"
- setcycle 33 line_style ""
- setcycle 33 match "n"
- setcycle 34 pair_colour "Red"
- setcycle 34 correct_response "2"
- setcycle 34 frame_colour "Black"
- setcycle 34 line_style ""
- setcycle 34 match "n"
- setcycle 35 pair_colour "Black"
- setcycle 35 correct_response ""
- setcycle 35 frame_colour "Black"
- setcycle 35 line_style ""
- setcycle 35 match "n"
- setcycle 36 pair_colour "Black"
- setcycle 36 correct_response ""
- setcycle 36 frame_colour "Black"
- setcycle 36 line_style ""
- setcycle 36 match "y"
- setcycle 37 pair_colour "Black"
- setcycle 37 correct_response ""
- setcycle 37 frame_colour "Black"
- setcycle 37 line_style ""
- setcycle 37 match "n"
- setcycle 38 pair_colour "Black"
- setcycle 38 correct_response ""
- setcycle 38 frame_colour "Black"
- setcycle 38 line_style ""
- setcycle 38 match "y"
- setcycle 39 pair_colour "Black"
- setcycle 39 correct_response "3"
- setcycle 39 frame_colour "Black"
- setcycle 39 line_style "dash"
- setcycle 39 match "y"
- setcycle 40 pair_colour "Black"
- setcycle 40 correct_response ""
- setcycle 40 frame_colour "Black"
- setcycle 40 line_style ""
- setcycle 40 match "n"
- setcycle 41 pair_colour "Black"
- setcycle 41 correct_response ""
- setcycle 41 frame_colour "Black"
- setcycle 41 line_style ""
- setcycle 41 match "y"
- setcycle 42 pair_colour "Black"
- setcycle 42 correct_response ""
- setcycle 42 frame_colour "Black"
- setcycle 42 line_style ""
- setcycle 42 match "n"
- setcycle 43 pair_colour "Black"
- setcycle 43 correct_response ""
- setcycle 43 frame_colour "Black"
- setcycle 43 line_style ""
- setcycle 43 match "y"
- setcycle 44 pair_colour "Black"
- setcycle 44 correct_response "1"
- setcycle 44 frame_colour "Orange"
- setcycle 44 line_style ""
- setcycle 44 match "n"
- setcycle 45 pair_colour "Black"
- setcycle 45 correct_response ""
- setcycle 45 frame_colour "Black"
- setcycle 45 line_style ""
- setcycle 45 match "n"
- setcycle 46 pair_colour "Black"
- setcycle 46 correct_response ""
- setcycle 46 frame_colour "Black"
- setcycle 46 line_style ""
- setcycle 46 match "y"
- setcycle 47 pair_colour "Black"
- setcycle 47 correct_response ""
- setcycle 47 frame_colour "Black"
- setcycle 47 line_style ""
- setcycle 47 match "y"
- setcycle 48 pair_colour "Black"
- setcycle 48 correct_response ""
- setcycle 48 frame_colour "Black"
- setcycle 48 line_style ""
- setcycle 48 match "n"
- setcycle 49 pair_colour "Black"
- setcycle 49 correct_response ""
- setcycle 49 frame_colour "Black"
- setcycle 49 line_style ""
- setcycle 49 match "n"
- run s3_trial_sequence
- define sequence s1_trial_sequence
- set flush_keyboard "yes"
- set description "Runs a number of items in sequence"
- run s1_ongoing_script "always"
- run s1_response_script "always"
- run s1_keyboard_script "always"
- run logger "always"
- define inline_script s3_ongoing_script
- ___run__
- from openexp.canvas import canvas
- # Make sure that the stripes show when needed:
- if exp.get('line_style') == 'dash':
- stripes.show()
- __end__
- ___prepare__
- # Create the image generating script.
- # Import random, numpy and canvas:
- import random as rdm
- import numpy as np
- from openexp.canvas import canvas
- # Define canvas for trial display:
- trial_display = canvas(exp)
- global trial_display
- # Draw the stim-set frame:
- trial_display.set_penwidth(3)
- frame_colour = self.get('frame_colour')
- trial_display.rect(32,224,960,320, fill=False, color=frame_colour)
- # Draw the cue 'line_style' stripes:
- stripes = self.copy_sketchpad('stripes')
- global stripes
- # Define a list of numerical values representing an 'n'-verticed image
- n = [8,6,4,3]
- # Then, a random value from 'n' is needed for every image to be presented:
- #(code found in cogsci.nl thread http://forum.cogsci.nl/index.php?p=/
- # discussion/325/solved-question-randomization-on-one-page-using-forms/p1)
- rdm.shuffle(n) # Shuffle the list order
- while len(n) > 0: # While the list is not empty
- nss = n.pop() # 'Pop' the first item
- # A list of indices for points1 and points2. This is just a list
- # from 0, 1, 2, 3, etc. up to the length of the list minus 1.
- indices1 = range(len(points1))
- indices2 = range(len(points2))
- # Randomly sample a number of indices. Here we select 'nss',
- # so that polygons will have 'n-sides'.
- # For image1:
- image1_indices = rdm.sample(indices1, nss)
- image2_indices = rdm.sample(indices2, nss)
- # Get variable 'match' from block_loop, shuffle and randomly sample:
- # Image 1:
- image1 = np.array(points1)[image1_indices]
- # Image 2 (matching):
- image2 = np.array(points2)[image1_indices]
- # Image 2 (non-matching):
- image3 = np.array(points2)[image2_indices]
- # Determine matching/non-matching:
- if self.get('match') == 'y':
- tdp2 = image2
- else:
- tdp2 = image3
- # Send to polygon function:
- pair_colour = self.get('pair_colour')
- trial_display.polygon(image1, color=pair_colour)
- trial_display.polygon(tdp2, color=pair_colour)
- # Show canvas:
- trial_display.show()
- __end__
- set description "Executes Python code"
- define sequence s4__sequence
- set flush_keyboard "yes"
- set description "Runs a number of items in sequence"
- run s4_block_loop "always"
- define sequence s4_trial_sequence
- set flush_keyboard "yes"
- set description "Runs a number of items in sequence"
- run s4_ongoing_script "always"
- run s4_response_script "always"
- run s4_keyboard_script "always"
- run logger "always"
- define inline_script s2_ongoing_script
- set _run ""
- ___prepare__
- # Create the image generating script.
- # Import random and canvas:
- import random as rdm
- import numpy as np
- from openexp.canvas import canvas
- trial_display = canvas(exp)
- # Draw the stim-set frame:
- trial_display.set_penwidth(3)
- frame_colour = self.get('frame_colour')
- trial_display.rect(32,224,960,320, fill=False, color=frame_colour)
- # Define a list of numerical values representing an 'n'-verticed image
- n = [8,6,4,3]
- # Then, a random value from 'n' is needed for every image to be presented:
- #(code found in cogsci.nl thread http://forum.cogsci.nl/index.php?p=/
- # discussion/325/solved-question-randomization-on-one-page-using-forms/p1)
- rdm.shuffle(n) # Shuffle the list order
- while len(n) > 0: # While the list is not empty
- nss = n.pop() # 'Pop' the first item
- # A list of indices for points1 and points2. This is just a list
- # from 0, 1, 2, 3, etc. up to the length of the list minus 1.
- indices1 = range(len(points1))
- indices2 = range(len(points2))
- # Randomly sample a number of indices. Here we select 'nss',
- # so that polygons will have 'n-sides'.
- # For image1:
- image1_indices = rdm.sample(indices1, nss)
- image2_indices = rdm.sample(indices2, nss)
- # Get variable 'match' from block_loop, shuffle and randomly sample:
- # Image 1:
- image1 = np.array(points1)[image1_indices]
- # Image 2 (matching):
- image2 = np.array(points2)[image1_indices]
- # Image 2 (non-matching):
- image3 = np.array(points2)[image2_indices]
- # Determine matching/non-matching:
- if self.get('match') == 'y':
- tdp2 = image2
- else:
- tdp2 = image3
- # Send to polygon function:
- pair_colour = self.get('pair_colour')
- trial_display.polygon(image1, color=pair_colour)
- trial_display.polygon(tdp2, color=pair_colour)
- # Show canvas:
- trial_display.show()
- __end__
- set description "Executes Python code"
- define inline_script s4_ongoing_script
- set _run ""
- ___prepare__
- # Create the image generating script.
- # Import random, numpy and canvas:
- import random as rdm
- import numpy as np
- from openexp.canvas import canvas
- trial_display = canvas(exp)
- # Draw the stim-set frame:
- trial_display.set_penwidth(3)
- frame_colour = self.get('frame_colour')
- trial_display.rect(32,224,960,320, fill=False, color=frame_colour)
- # Define a list of numerical values representing an 'n'-verticed image
- n = [8,6,4,3]
- # Then, a random value from 'n' is needed for every image to be presented:
- #(code found in cogsci.nl thread http://forum.cogsci.nl/index.php?p=/
- # discussion/325/solved-question-randomization-on-one-page-using-forms/p1)
- rdm.shuffle(n) # Shuffle the list order
- while len(n) > 0: # While the list is not empty
- nss = n.pop() # 'Pop' the first item
- # A list of indices for points1 and points2. This is just a list
- # from 0, 1, 2, 3, etc. up to the length of the list minus 1.
- indices1 = range(len(points1))
- indices2 = range(len(points2))
- # Randomly sample a number of indices. Here we select 'nss',
- # so that polygons will have 'n-sides'.
- # For image1:
- image1_indices = rdm.sample(indices1, nss)
- image2_indices = rdm.sample(indices2, nss)
- # Image 1:
- image1 = np.array(points1)[image1_indices]
- # Image 2 (matching):
- image2 = np.array(points2)[image1_indices]
- # Image 2 (non-matching):
- image3 = np.array(points2)[image2_indices]
- # Get variable 'match' from block_loop:
- # Determine matching/non-matching:
- if self.get('match') == 'y':
- tdp2 = image2
- else:
- tdp2 = image3
- # Send to polygon function:
- line_style = self.get('line_style')
- line_width = self.get('line_width')
- pair_colour = self.get('pair_colour')
- trial_display.set_penwidth(line_width)
- trial_display.polygon(image1, color=pair_colour)
- trial_display.polygon(tdp2, color=pair_colour)
- # Show canvas:
- trial_display.show()
- __end__
- set description "Executes Python code"
- define loop p_block_loop
- set repeat "1"
- set description "Repeatedly runs another item"
- set skip "0"
- set item "p_trial_sequence"
- set column_order "match"
- set cycles "20"
- set order "sequential"
- setcycle 0 match "y"
- setcycle 1 match "y"
- setcycle 2 match "y"
- setcycle 3 match "n"
- setcycle 4 match "y"
- setcycle 5 match "y"
- setcycle 6 match "n"
- setcycle 7 match "n"
- setcycle 8 match "y"
- setcycle 9 match "n"
- setcycle 10 match "n"
- setcycle 11 match "n"
- setcycle 12 match "n"
- setcycle 13 match "y"
- setcycle 14 match "y"
- setcycle 15 match "n"
- setcycle 16 match "y"
- setcycle 17 match "n"
- setcycle 18 match "y"
- setcycle 19 match "n"
- run p_trial_sequence
- define loop s1_block_loop
- set repeat "1"
- set description "Repeatedly runs another item"
- set skip "0"
- set item "s1_trial_sequence"
- set column_order "match;frame_colour;correct_response"
- set cycles "50"
- set order "sequential"
- setcycle 0 correct_response ""
- setcycle 0 frame_colour "Black"
- setcycle 0 match "y"
- setcycle 1 correct_response ""
- setcycle 1 frame_colour "Black"
- setcycle 1 match "n"
- setcycle 2 correct_response ""
- setcycle 2 frame_colour "Black"
- setcycle 2 match "y"
- setcycle 3 correct_response ""
- setcycle 3 frame_colour "Black"
- setcycle 3 match "y"
- setcycle 4 correct_response ""
- setcycle 4 frame_colour "Black"
- setcycle 4 match "y"
- setcycle 5 correct_response ""
- setcycle 5 frame_colour "Black"
- setcycle 5 match "n"
- setcycle 6 correct_response ""
- setcycle 6 frame_colour "Black"
- setcycle 6 match "n"
- setcycle 7 correct_response ""
- setcycle 7 frame_colour "Black"
- setcycle 7 match "n"
- setcycle 8 correct_response ""
- setcycle 8 frame_colour "Black"
- setcycle 8 match "n"
- setcycle 9 correct_response ""
- setcycle 9 frame_colour "Black"
- setcycle 9 match "n"
- setcycle 10 correct_response ""
- setcycle 10 frame_colour "Black"
- setcycle 10 match "y"
- setcycle 11 correct_response ""
- setcycle 11 frame_colour "Black"
- setcycle 11 match "y"
- setcycle 12 correct_response ""
- setcycle 12 frame_colour "Black"
- setcycle 12 match "n"
- setcycle 13 correct_response ""
- setcycle 13 frame_colour "Black"
- setcycle 13 match "y"
- setcycle 14 correct_response ""
- setcycle 14 frame_colour "Black"
- setcycle 14 match "n"
- setcycle 15 correct_response ""
- setcycle 15 frame_colour "Black"
- setcycle 15 match "n"
- setcycle 16 correct_response ""
- setcycle 16 frame_colour "Black"
- setcycle 16 match "y"
- setcycle 17 correct_response ""
- setcycle 17 frame_colour "Black"
- setcycle 17 match "y"
- setcycle 18 correct_response ""
- setcycle 18 frame_colour "Black"
- setcycle 18 match "y"
- setcycle 19 correct_response "1"
- setcycle 19 frame_colour "Green"
- setcycle 19 match "n"
- setcycle 20 correct_response ""
- setcycle 20 frame_colour "Black"
- setcycle 20 match "y"
- setcycle 21 correct_response ""
- setcycle 21 frame_colour "Black"
- setcycle 21 match "n"
- setcycle 22 correct_response ""
- setcycle 22 frame_colour "Black"
- setcycle 22 match "y"
- setcycle 23 correct_response ""
- setcycle 23 frame_colour "Black"
- setcycle 23 match "y"
- setcycle 24 correct_response ""
- setcycle 24 frame_colour "Black"
- setcycle 24 match "n"
- setcycle 25 correct_response ""
- setcycle 25 frame_colour "Black"
- setcycle 25 match "n"
- setcycle 26 correct_response ""
- setcycle 26 frame_colour "Black"
- setcycle 26 match "n"
- setcycle 27 correct_response ""
- setcycle 27 frame_colour "Black"
- setcycle 27 match "n"
- setcycle 28 correct_response ""
- setcycle 28 frame_colour "Black"
- setcycle 28 match "n"
- setcycle 29 correct_response ""
- setcycle 29 frame_colour "Black"
- setcycle 29 match "y"
- setcycle 30 correct_response ""
- setcycle 30 frame_colour "Black"
- setcycle 30 match "y"
- setcycle 31 correct_response ""
- setcycle 31 frame_colour "Black"
- setcycle 31 match "n"
- setcycle 32 correct_response ""
- setcycle 32 frame_colour "Black"
- setcycle 32 match "y"
- setcycle 33 correct_response ""
- setcycle 33 frame_colour "Black"
- setcycle 33 match "n"
- setcycle 34 correct_response ""
- setcycle 34 frame_colour "Black"
- setcycle 34 match "y"
- setcycle 35 correct_response ""
- setcycle 35 frame_colour "Black"
- setcycle 35 match "y"
- setcycle 36 correct_response ""
- setcycle 36 frame_colour "Black"
- setcycle 36 match "y"
- setcycle 37 correct_response ""
- setcycle 37 frame_colour "Black"
- setcycle 37 match "n"
- setcycle 38 correct_response ""
- setcycle 38 frame_colour "Black"
- setcycle 38 match "n"
- setcycle 39 correct_response "1"
- setcycle 39 frame_colour "Green"
- setcycle 39 match "y"
- setcycle 40 correct_response ""
- setcycle 40 frame_colour "Black"
- setcycle 40 match "n"
- setcycle 41 correct_response ""
- setcycle 41 frame_colour "Black"
- setcycle 41 match "y"
- setcycle 42 correct_response ""
- setcycle 42 frame_colour "Black"
- setcycle 42 match "y"
- setcycle 43 correct_response ""
- setcycle 43 frame_colour "Black"
- setcycle 43 match "n"
- setcycle 44 correct_response ""
- setcycle 44 frame_colour "Black"
- setcycle 44 match "y"
- setcycle 45 correct_response ""
- setcycle 45 frame_colour "Black"
- setcycle 45 match "y"
- setcycle 46 correct_response ""
- setcycle 46 frame_colour "Black"
- setcycle 46 match "y"
- setcycle 47 correct_response ""
- setcycle 47 frame_colour "Black"
- setcycle 47 match "n"
- setcycle 48 correct_response ""
- setcycle 48 frame_colour "Black"
- setcycle 48 match "n"
- setcycle 49 correct_response ""
- setcycle 49 frame_colour "Black"
- setcycle 49 match "n"
- run s1_trial_sequence
- define inline_script p_ongoing_script
- set _run ""
- ___prepare__
- # Create the image generating script.
- # Import random and canvas:
- import random as rdm
- import numpy as np
- from openexp.canvas import canvas
- trial_display = canvas(exp)
- # Draw the stim-set frame:
- trial_display.set_penwidth(3)
- trial_display.rect(32,224,960,320, fill=False)
- # Define a list of numerical values representing an 'n'-verticed image
- n = [8,6,4,3]
- # Then, a random value from 'n' is needed for every image to be presented:
- #(code found in cogsci.nl thread http://forum.cogsci.nl/index.php?p=/
- # discussion/325/solved-question-randomization-on-one-page-using-forms/p1)
- rdm.shuffle(n) # Shuffle the list order
- while len(n) > 0: # While the list is not empty
- nss = n.pop() # 'Pop' the first item
- # A list of indices for points1 and points2. This is just a list
- # from 0, 1, 2, 3, etc. up to the length of the list minus 1.
- indices1 = range(len(points1))
- indices2 = range(len(points2))
- # Randomly sample a number of indices. Here we select 'nss',
- # so that polygons will have 'n-sides'.
- # For image1:
- image1_indices = rdm.sample(indices1, nss)
- image2_indices = rdm.sample(indices2, nss)
- # Get variable 'match' from block_loop:
- # Image 1:
- image1 = np.array(points1)[image1_indices]
- # Image 2 (matching):
- image2 = np.array(points2)[image1_indices]
- # Image 2 (non-matching):
- image3 = np.array(points2)[image2_indices]
- # Determine matching/non-matching:
- if self.get('match') == 'y':
- tdp2 = image2
- else:
- tdp2 = image3
- # Send to polygon function:
- trial_display.polygon(image1)
- trial_display.polygon(tdp2)
- # Show canvas:
- trial_display.show()
- __end__
- set description "Executes Python code"
- define sequence practice_sequence
- set flush_keyboard "yes"
- set description "Runs a number of items in sequence"
- run p_block_loop "always"
- define inline_script s2_keyboard_script
- ___run__
- from openexp.keyboard import keyboard
- # The keypress timeout
- timeout = 1600
- # We poll for two responses. The first 'keyboard_response_1'
- # waits for a 'z' or an 'm'. The second waits for a '1' or a '2'. These
- # responses can be given in arbitrary order, are stored in
- # different variables, and can time out indendently of each
- # other.
- exp.set('keyboard_response_1', None)
- exp.set('keyboard_response_time_1', None)
- keylist_1 = ['z', 'm']
- exp.set('keyboard_response_2', None)
- exp.set('keyboard_response_time_2', None)
- keylist_2 = ['1', '2']
- # Create a keyboard object that doesn't block the
- # experiment, so we can use it to poll for keypresses
- # continuously.
- my_keyboard = keyboard(exp, timeout=0)
- my_keyboard.flush()
- # Loop until we timeout
- start_time = self.time()
- while self.time() - timeout < start_time:
- key, key_time = my_keyboard.get_key()
- # If a key from keylist 1 is pressed, set keyboard_response_1
- # and keyboard_response_time_1. Also, set key_list_1 to [], so
- # that we do not capture multiple keypresses from this list.
- if key in keylist_1:
- exp.set('keyboard_response_1', key)
- exp.set('keyboard_response_time_1', key_time - start_time)
- keylist_1 = []
- # The same principle is applied for keylist 2.
- if key in keylist_2:
- exp.set('keyboard_response_2', key)
- exp.set('keyboard_response_time_2', key_time - start_time)
- keylist_2 = []
- # Create a variable to check the response against the expected response:
- if self.get('keyboard_response_1') == self.get('correct_ongoing_response'):
- correct_1 = '1'
- else:
- correct_1 = '0'
- exp.set("correct_1", correct_1)
- # Create a variable to check the response against the expected response:
- if self.get('keyboard_response_2') == self.get('correct_cue_response'):
- correct_2 = '1'
- else:
- correct_2 = '0'
- exp.set("correct_2", correct_2)
- __end__
- set _prepare ""
- set description "Executes Python code"
- define text_display experiment_brief
- set foreground "#000000"
- set font_size "20"
- set description "Presents a display consisting of text"
- set maxchar "200"
- set align "center"
- __content__
- Experiment Instructions
- Thank you for taking part in this research. Please read and follow ALL instructions carefully.
- During this experiment you will be presented with 4 sessions. Each session will consist of 50 image pairs.
- Sessions will begin automatically after 20 seconds of viewing the session instructions, and a 30 second countdown screen.
- <i>Your task will be to identify if the images are symmetrical or non-symmetrical.</i>
- <b>For non-symmetrical pairs press the 'Z' key.</b>
- <b>For symmetrical pairs press the 'M' key.</b>
- There will first be a practice session of 20 image pairs. The experiment will then proceed to the main 4 sessions.
- During later sessions you will also be asked to also respond to various additional events.
- Press any key to proceed
- __end__
- set background "#ffffff"
- set duration "keypress"
- set font_family "sans"
- define inline_script s2_response_script
- set _run ""
- ___prepare__
- # For the ongoing task:
- # Determine correct ongoing response, depending on whether the images
- # are matching or non-matching:
- if self.get('match') == 'y':
- correct_keyboard_response_1 = 'm'
- else:
- correct_keyboard_response_1 = 'z'
- # Set the correct response for the ongoing task by giving the variable
- # 'correct_ongoing_response' a value:
- exp.set("correct_ongoing_response", correct_keyboard_response_1)
- # For the PM cues:
- # Determine correct response, depending on whether session cues are present or not:
- if self.get('frame_colour') == 'Blue':
- correct_keyboard_response_2 = '2'
- elif self.get('pair_colour') == 'Purple':
- correct_keyboard_response_2 = '1'
- else:
- correct_keyboard_response_2 = ''
- # Set the correct response by giving the variable 'correct_cue_response'
- # a value:
- exp.set("correct_cue_response", correct_keyboard_response_2)
- __end__
- set description "Executes Python code"
- define inline_script s3_keyboard_script
- ___run__
- from openexp.keyboard import keyboard
- # The keypress timeout
- timeout = 1600
- # We poll for two responses. The first 'keyboard_response_1'
- # waits for a 'z' or an 'm'. The second waits for a '1', a '2' or a '3'.
- # These responses can be given in arbitrary order, are stored in
- # different variables, and can time out indendently of each
- # other.
- exp.set('keyboard_response_1', None)
- exp.set('keyboard_response_time_1', None)
- keylist_1 = ['z', 'm']
- exp.set('keyboard_response_2', None)
- exp.set('keyboard_response_time_2', None)
- keylist_2 = ['1', '2', '3']
- # Create a keyboard object that doesn't block the
- # experiment, so we can use it to poll for keypresses
- # continuously.
- my_keyboard = keyboard(exp, timeout=0)
- my_keyboard.flush()
- # Loop until we timeout
- start_time = self.time()
- while self.time() - timeout < start_time:
- key, key_time = my_keyboard.get_key()
- # If a key from keylist 1 is pressed, set keyboard_response_1
- # and keyboard_response_time_1. Also, set key_list_1 to [], so
- # that we do not capture multiple keypresses from this list.
- if key in keylist_1:
- exp.set('keyboard_response_1', key)
- exp.set('keyboard_response_time_1', key_time - start_time)
- keylist_1 = []
- # The same principle is applied for keylist 2.
- if key in keylist_2:
- exp.set('keyboard_response_2', key)
- exp.set('keyboard_response_time_2', key_time - start_time)
- keylist_2 = []
- # Create a variable to check the response against the expected response:
- if self.get('keyboard_response_1') == self.get('correct_ongoing_response'):
- correct_1 = '1'
- else:
- correct_1 = '0'
- exp.set("correct_1", correct_1)
- # Create a variable to check the response against the expected response:
- if self.get('keyboard_response_2') == self.get('correct_cue_response'):
- correct_2 = '1'
- else:
- correct_2 = '0'
- exp.set("correct_2", correct_2)
- __end__
- set _prepare ""
- set description "Executes Python code"
- define inline_script s4_response_script
- set _run ""
- ___prepare__
- # For the ongoing task:
- # Determine correct ongoing response, depending on whether the images
- # are matching or non-matching:
- if self.get('match') == 'y':
- correct_keyboard_response_1 = 'm'
- else:
- correct_keyboard_response_1 = 'z'
- # Set the correct response for the ongoing task by giving the variable
- # 'correct_ongoing_response' a value:
- exp.set("correct_ongoing_response", correct_keyboard_response_1)
- # For the PM cues:
- # Determine correct response, depending on whether session cues are present or not:
- if self.get('frame_colour') == 'Yellow':
- correct_keyboard_response_2 = '3'
- elif self.get('pair_colour') == 'Pink':
- correct_keyboard_response_2 = '4'
- elif self.get('line_style') == 'dash':
- correct_keyboard_response_2 = '2'
- elif self.get('line_width') == 5:
- correct_keyboard_response_2 = '1'
- else:
- correct_keyboard_response_2 = ''
- # Set the correct response by giving the variable 'correct_cue_response'
- # a value:
- exp.set("correct_cue_response", correct_keyboard_response_2)
- __end__
- set description "Executes Python code"
- define inline_script p_keyboard_reponse
- ___run__
- from openexp.keyboard import keyboard
- # The keypress timeout
- timeout = 1600
- # We poll for two responses. The 'keyboard_response_1'
- # waits for a 'z' or an 'm'.
- exp.set('keyboard_response_1', None)
- exp.set('keyboard_response_time_1', None)
- keylist_1 = ['z', 'm']
- # Create a keyboard object that doesn't block the
- # experiment, so we can use it to poll for keypresses
- # continuously.
- my_keyboard = keyboard(exp, timeout=0)
- my_keyboard.flush()
- # Loop until we timeout
- start_time = self.time()
- while self.time() - timeout < start_time:
- key, key_time = my_keyboard.get_key()
- # If a key from keylist 1 is pressed, set keyboard_response_1
- # and keyboard_response_time_1. Also, set key_list_1 to [], so
- # that we do not capture multiple keypresses from this list.
- if key in keylist_1:
- exp.set('keyboard_response_1', key)
- exp.set('keyboard_response_time_1', key_time - start_time)
- keylist_1 = []
- # Create a variable to check the key response against the expected response:
- if self.get('keyboard_response_1') == self.get('correct_ongoing_response'):
- correct_1 = '1'
- else:
- correct_1 = '0'
- exp.set("correct_1", correct_1)
- __end__
- set _prepare ""
- set description "Executes Python code"
- define inline_script p_response_script
- set _run ""
- ___prepare__
- # For the ongoing task:
- # Determine correct ongoing response, depending on whether the images
- # are matching or non-matching:
- if self.get('match') == 'y':
- correct_keyboard_response_1 = 'm'
- else:
- correct_keyboard_response_1 = 'z'
- # Set the correct response for the ongoing task by giving the variable
- # 'correct_ongoing_response' a value:
- exp.set("correct_ongoing_response", correct_keyboard_response_1)
- __end__
- set description "Executes Python code"
- define inline_script s1_ongoing_script
- set _run ""
- ___prepare__
- # Create the image generating script.
- # Import random and canvas:
- import random as rdm
- import numpy as np
- from openexp.canvas import canvas
- trial_display = canvas(exp)
- # Draw the stim-set frame:
- trial_display.set_penwidth(3)
- frame_colour = self.get('frame_colour')
- trial_display.rect(32,224,960,320, fill=False, color=frame_colour)
- # Define a list of numerical values representing an 'n'-verticed image
- n = [8,6,4,3]
- # Then, a random value from 'n' is needed for every image to be presented:
- #(code found in cogsci.nl thread http://forum.cogsci.nl/index.php?p=/
- # discussion/325/solved-question-randomization-on-one-page-using-forms/p1)
- rdm.shuffle(n) # Shuffle the list order
- while len(n) > 0: # While the list is not empty
- nss = n.pop() # 'Pop' the first item
- # A list of indices for points1 and points2. This is just a list
- # from 0, 1, 2, 3, etc. up to the length of the list minus 1.
- indices1 = range(len(points1))
- indices2 = range(len(points2))
- # Randomly sample a number of indices. Here we select 'nss',
- # so that polygons will have 'n-sides'.
- # For image1:
- image1_indices = rdm.sample(indices1, nss)
- image2_indices = rdm.sample(indices2, nss)
- # Get variable 'match' from block_loop:
- # Image 1:
- image1 = np.array(points1)[image1_indices]
- # Image 2 (matching):
- image2 = np.array(points2)[image1_indices]
- # Image 2 (non-matching):
- image3 = np.array(points2)[image2_indices]
- # Determine matching/non-matching:
- if self.get('match') == 'y':
- tdp2 = image2
- else:
- tdp2 = image3
- # Send to polygon function:
- trial_display.polygon(image1)
- trial_display.polygon(tdp2)
- # Show canvas:
- trial_display.show()
- __end__
- set description "Executes Python code"
- define text_display s1_instructions
- set foreground "Black"
- set font_size "20"
- set description "Presents a display consisting of text"
- set maxchar "200"
- set align "center"
- __content__
- Session A
- The following session will consist of 50 instances of image pairs.
- Please remember to press the
- <b>'Z' key for non-symmetrical pairs</b> and the <b>'M' key for symmetrical pairs.</b>
- In addition, when the following events occur please press the corresponding key:
- '1' key = border turns green
- Responses should be carried out as quickly and accurately as possible.
- __end__
- set background "White"
- set duration "20000"
- set font_family "sans"
- define inline_script s3_response_script
- set _run ""
- ___prepare__
- # For the ongoing task:
- # Determine correct ongoing response, depending on whether the images
- # are matching or non-matching:
- if self.get('match') == 'y':
- correct_keyboard_response_1 = 'm'
- else:
- correct_keyboard_response_1 = 'z'
- # Set the correct response for the ongoing task by giving the variable
- # 'correct_ongoing_response' a value:
- exp.set("correct_ongoing_response", correct_keyboard_response_1)
- # For the PM cues:
- # Determine correct response, depending on whether session cues are present or not:
- if self.get('frame_colour') == 'Orange':
- correct_keyboard_response_2 = '1'
- elif self.get('pair_colour') == 'Red':
- correct_keyboard_response_2 = '2'
- elif self.get('line_style') == 'dash':
- correct_keyboard_response_2 = '3'
- else:
- correct_keyboard_response_2 = ''
- # Set the correct response by giving the variable 'correct_cue_response'
- # a value:
- exp.set("correct_cue_response", correct_keyboard_response_2)
- __end__
- set description "Executes Python code"
- define text_display practice_instructions
- set foreground "#000000"
- set font_size "20"
- set description "Presents a display consisting of text"
- set maxchar "200"
- set align "center"
- __content__
- Practice Session
- The following session will consist of 20 instances of image pairs.
- Please remember to press the
- <b>'Z' key for non-symmetrical pairs</b> and the <b>'M' key for symmetrical pairs.</b>
- __end__
- set background "#ffffff"
- set duration "20000"
- set font_family "sans"
- define loop s2
- set repeat "1"
- set description "Repeatedly runs another item"
- set item "s2_sequence"
- set column_order ""
- set cycles "1"
- set order "sequential"
- run s2_sequence
- define loop s1
- set repeat "1"
- set description "Repeatedly runs another item"
- set item "s1_sequence"
- set column_order ""
- set cycles "1"
- set order "random"
- run s1_sequence
- define loop s4
- set repeat "1"
- set description "Repeatedly runs another item"
- set item "s4__sequence"
- set column_order ""
- set cycles "1"
- set order "sequential"
- run s4__sequence
- define sequence experiment
- set flush_keyboard "yes"
- set description "Runs a number of items in sequence"
- run stripes "never"
- run image_points "always"
- run experiment_brief "always"
- run practice_instructions "always"
- run p_countdown "always"
- run practice "always"
- run s1_instructions "always"
- run s_countdown "always"
- run s1 "always"
- run s2_instructions "always"
- run s_countdown "always"
- run s2 "always"
- run s3_instructions "always"
- run s_countdown "always"
- run s3 "always"
- run s4_instructions "always"
- run s_countdown "always"
- run s4 "always"
- run experiment_end "always"
- define text_display s4_instructions
- set foreground "Black"
- set font_size "20"
- set description "Presents a display consisting of text"
- set maxchar "200"
- set align "center"
- __content__
- Session D
- The following session will consist of 50 instances of image pairs.
- Please remember to press the
- <b>'Z' key for non-symmetrical pairs</b> and the <b>'M' key for symmetrical pairs.</b>
- In addition, when the following events occur please press the corresponding key:
- '1' key = image line width changes
- '2' key = image changed line style
- '3' key = border turns yellow
- '4' key = image pair turns pink
- Responses should be carried out as quickly and accurately as possible.
- __end__
- set background "White"
- set duration "20000"
- set font_family "sans"
- define sequence s3_trial_sequence
- set flush_keyboard "yes"
- set description "Runs a number of items in sequence"
- run s3_ongoing_script "always"
- run s3_response_script "always"
- run s3_keyboard_script "always"
- run logger "always"
- define logger logger
- set ignore_missing "yes"
- set description "Logs experimental data"
- set auto_log "yes"
- set use_quotes "yes"
- log "response"
- log "response_time"
- log "correct"
- log "average_response_time"
- log "avg_rt"
- log "accuracy"
- log "acc"
- log "count_experiment"
- log "count_s1_sequence"
- log "count_practice_sequence"
- log "count_s4_sequence"
- log "count_s2_sequence"
- log "count_s3_sequence"
- log "count_trial_sequence"
- log "response_keyboard_response"
- log "response_time_keyboard_response"
- log "correct_keyboard_response"
- log "s_countdown"
- define sequence s3_sequence
- set flush_keyboard "yes"
- set description "Runs a number of items in sequence"
- run s3_block_loop "always"
- define sequence p_trial_sequence
- set flush_keyboard "yes"
- set description "Runs a number of items in sequence"
- run p_ongoing_script "always"
- run p_response_script "always"
- run p_keyboard_reponse "always"
- run logger "always"
- define feedback p_feedback
- set duration "1000"
- set reset_variables "yes"
- set description "Provides feedback to the participant"
- draw textline 0 0 "[p_countdown]" center=1 color=Black font_family="sans" font_size=50 font_italic=no font_bold=no show_if="always" html="yes"
- define text_display s3_instructions
- set foreground "Black"
- set font_size "20"
- set description "Presents a display consisting of text"
- set maxchar "200"
- set align "center"
- __content__
- Session C
- The following session will consist of 50 instances of image pairs.
- Please remember to press the
- <b>'Z' key for non-symmetrical pairs</b> and the <b>'M' key for symmetrical pairs.</b>
- In addition, when the following events occur please press the corresponding key:
- '1' key = border turns orange
- '2' key = image pair turns red
- '3' key = image pair changes line style
- Responses should be carried out as quickly and accurately as possible.
- __end__
- set background "White"
- set duration "20000"
- set font_family "sans"
- define sequence s2_trial_sequence
- set flush_keyboard "yes"
- set description "Runs a number of items in sequence"
- run s2_ongoing_script "always"
- run s2_response_script "always"
- run s2_keyboard_script "always"
- run logger "always"
- define loop p_countdown
- set repeat "1"
- set description "Repeatedly runs another item"
- set skip "0"
- set item "p_feedback"
- set column_order "p_countdown"
- set cycles "10"
- set order "sequential"
- setcycle 0 p_countdown "10"
- setcycle 1 p_countdown "9"
- setcycle 2 p_countdown "8"
- setcycle 3 p_countdown "7"
- setcycle 4 p_countdown "6"
- setcycle 5 p_countdown "5"
- setcycle 6 p_countdown "4"
- setcycle 7 p_countdown "3"
- setcycle 8 p_countdown "2"
- setcycle 9 p_countdown "1"
- run p_feedback
- define loop practice
- set repeat "1"
- set description "Repeatedly runs another item"
- set item "practice_sequence"
- set column_order ""
- set cycles "1"
- set order "sequential"
- run practice_sequence
- define sketchpad stripes
- set duration "keypress"
- set description "Displays stimuli"
- draw line -416 -160 -448 -128 penwidth=5 color=White show_if="always"
- draw line -384 -160 -448 -96 penwidth=5 color=#ffffff show_if="always"
- draw line -352 -160 -448 -64 penwidth=5 color=#ffffff show_if="always"
- draw line -320 -160 -448 -32 penwidth=5 color=#ffffff show_if="always"
- draw line -288 -160 -448 0 penwidth=5 color=#ffffff show_if="always"
- draw line -256 -160 -448 32 penwidth=5 color=#ffffff show_if="always"
- draw line -224 -160 -448 64 penwidth=5 color=#ffffff show_if="always"
- draw line -192 -160 -448 96 penwidth=5 color=#ffffff show_if="always"
- draw line -160 -160 -448 128 penwidth=5 color=#ffffff show_if="always"
- draw line -128 -160 -448 160 penwidth=5 color=#ffffff show_if="always"
- draw line -96 -160 -448 192 penwidth=5 color=#ffffff show_if="always"
- draw line -64 -160 -416 192 penwidth=5 color=#ffffff show_if="always"
- draw line -32 -160 -384 192 penwidth=5 color=#ffffff show_if="always"
- draw line -32 -128 -352 192 penwidth=5 color=#ffffff show_if="always"
- draw line -32 -96 -320 192 penwidth=5 color=#ffffff show_if="always"
- draw line -32 -64 -288 192 penwidth=5 color=#ffffff show_if="always"
- draw line -32 -32 -256 192 penwidth=5 color=#ffffff show_if="always"
- draw line -32 0 -224 192 penwidth=5 color=#ffffff show_if="always"
- draw line -32 32 -192 192 penwidth=5 color=#ffffff show_if="always"
- draw line -32 64 -160 192 penwidth=5 color=#ffffff show_if="always"
- draw line -32 96 -128 192 penwidth=5 color=#ffffff show_if="always"
- draw line -32 128 -96 192 penwidth=5 color=#ffffff show_if="always"
- draw line -32 160 -64 192 penwidth=5 color=#ffffff show_if="always"
- draw line 32 160 64 192 penwidth=5 color=#ffffff show_if="always"
- draw line 32 128 96 192 penwidth=5 color=#ffffff show_if="always"
- draw line 32 96 128 192 penwidth=5 color=#ffffff show_if="always"
- draw line 32 64 160 192 penwidth=5 color=#ffffff show_if="always"
- draw line 32 32 192 192 penwidth=5 color=#ffffff show_if="always"
- draw line 32 0 224 192 penwidth=5 color=#ffffff show_if="always"
- draw line 32 -32 256 192 penwidth=5 color=#ffffff show_if="always"
- draw line 32 -64 288 192 penwidth=5 color=#ffffff show_if="always"
- draw line 32 -96 320 192 penwidth=5 color=#ffffff show_if="always"
- draw line 32 -128 352 192 penwidth=5 color=#ffffff show_if="always"
- draw line 32 -160 384 192 penwidth=5 color=#ffffff show_if="always"
- draw line 64 -160 416 192 penwidth=5 color=#ffffff show_if="always"
- draw line 128 -128 448 192 penwidth=5 color=#ffffff show_if="always"
- draw line 160 -128 448 160 penwidth=5 color=#ffffff show_if="always"
- draw line 192 -128 448 128 penwidth=5 color=#ffffff show_if="always"
- draw line 224 -128 448 96 penwidth=5 color=#ffffff show_if="always"
- draw line 256 -128 448 64 penwidth=5 color=#ffffff show_if="always"
- draw line 288 -128 448 32 penwidth=5 color=#ffffff show_if="always"
- draw line 320 -128 448 0 penwidth=5 color=#ffffff show_if="always"
- draw line 352 -128 448 -32 penwidth=5 color=#ffffff show_if="always"
- draw line 384 -128 448 -64 penwidth=5 color=#ffffff show_if="always"
- draw line 416 -128 448 -96 penwidth=5 color=#ffffff show_if="always"
- define sequence s1_sequence
- set flush_keyboard "yes"
- set description "Runs a number of items in sequence"
- run s1_block_loop "always"
- define inline_script s1_response_script
- set _run ""
- ___prepare__
- # For the ongoing task:
- # Determine correct ongoing response, depending on whether the images
- # are matching or non-matching:
- if self.get('match') == 'y':
- correct_keyboard_response_1 = 'm'
- else:
- correct_keyboard_response_1 = 'z'
- # Set the correct response for the ongoing task by giving the variable
- # 'correct_ongoing_response' a value:
- exp.set("correct_ongoing_response", correct_keyboard_response_1)
- # For the PM cues:
- # Determine correct response, depending on whether session cues are present or not:
- if self.get('frame_colour') == 'Green':
- correct_keyboard_response_2 = '1'
- else:
- correct_keyboard_response_2 = ''
- # Set the correct response by giving the variable 'correct_cue_response'
- # a value:
- exp.set("correct_cue_response", correct_keyboard_response_2)
- __end__
- set description "Executes Python code"
- define loop s_countdown
- set repeat "1"
- set description "Repeatedly runs another item"
- set skip "0"
- set item "s_feedback"
- set column_order "s_countdown"
- set cycles "30"
- set order "sequential"
- setcycle 0 s_countdown "30"
- setcycle 1 s_countdown "29"
- setcycle 2 s_countdown "28"
- setcycle 3 s_countdown "27"
- setcycle 4 s_countdown "26"
- setcycle 5 s_countdown "25"
- setcycle 6 s_countdown "24"
- setcycle 7 s_countdown "23"
- setcycle 8 s_countdown "22"
- setcycle 9 s_countdown "21"
- setcycle 10 s_countdown "20"
- setcycle 11 s_countdown "19"
- setcycle 12 s_countdown "18"
- setcycle 13 s_countdown "17"
- setcycle 14 s_countdown "16"
- setcycle 15 s_countdown "15"
- setcycle 16 s_countdown "14"
- setcycle 17 s_countdown "13"
- setcycle 18 s_countdown "12"
- setcycle 19 s_countdown "11"
- setcycle 20 s_countdown "10"
- setcycle 21 s_countdown "9"
- setcycle 22 s_countdown "8"
- setcycle 23 s_countdown "7"
- setcycle 24 s_countdown "6"
- setcycle 25 s_countdown "5"
- setcycle 26 s_countdown "4"
- setcycle 27 s_countdown "3"
- setcycle 28 s_countdown "2"
- setcycle 29 s_countdown "1"
- run s_feedback
- define text_display s2_instructions
- set foreground "Black"
- set font_size "20"
- set description "Presents a display consisting of text"
- set maxchar "200"
- set align "center"
- __content__
- Session B
- The following session will consist of 50 instances of image pairs.
- Please remember to press the
- <b>'Z' key for non-symmetrical pairs</b> and the <b>'M' key for symmetrical pairs.</b>
- In addition, when the following events occur please press the corresponding key:
- '1' key = image pair turns purple
- '2' key = border turns blue
- Responses should be carried out as quickly and accurately as possible.
- __end__
- set background "White"
- set duration "20000"
- set font_family "sans"
- define inline_script s1_keyboard_script
- ___run__
- from openexp.keyboard import keyboard
- # The keypress timeout
- timeout = 1600
- # We poll for two responses. The first 'keyboard_response_1'
- # waits for a 'z' or an 'm'. The second waits for a '1'. These
- # responses can be given in arbitrary order, are stored in
- # different variables, and can time out indendently of each
- # other.
- exp.set('keyboard_response_1', None)
- exp.set('keyboard_response_time_1', None)
- keylist_1 = ['z', 'm']
- exp.set('keyboard_response_2', None)
- exp.set('keyboard_response_time_2', None)
- keylist_2 = ['1']
- # Create a keyboard object that doesn't block the
- # experiment, so we can use it to poll for keypresses
- # continuously.
- my_keyboard = keyboard(exp, timeout=0)
- my_keyboard.flush()
- # Loop until we timeout
- start_time = self.time()
- while self.time() - timeout < start_time:
- key, key_time = my_keyboard.get_key()
- # If a key from keylist 1 is pressed, set keyboard_response_1
- # and keyboard_response_time_1. Also, set key_list_1 to [], so
- # that we do not capture multiple keypresses from this list.
- if key in keylist_1:
- exp.set('keyboard_response_1', key)
- exp.set('keyboard_response_time_1', key_time - start_time)
- keylist_1 = []
- # The same principle is applied for keylist 2.
- if key in keylist_2:
- exp.set('keyboard_response_2', key)
- exp.set('keyboard_response_time_2', key_time - start_time)
- keylist_2 = []
- # Create a variable to check the response against the expected response:
- if self.get('keyboard_response_1') == self.get('correct_ongoing_response'):
- correct_1 = '1'
- else:
- correct_1 = '0'
- exp.set("correct_1", correct_1)
- # Create a variable to check the response against the expected response:
- if self.get('keyboard_response_2') == self.get('correct_cue_response'):
- correct_2 = '1'
- else:
- correct_2 = '0'
- exp.set("correct_2", correct_2)
- __end__
- set _prepare ""
- set description "Executes Python code"
- define inline_script s4_keyboard_script
- ___run__
- from openexp.keyboard import keyboard
- # The keypress timeout
- timeout = 1600
- # We poll for two responses. The first 'keyboard_response_1' waits for
- # a 'z' or an 'm'. The second waits for a '1', a '2', a '3' or a '4'.
- # These responses can be given in arbitrary order, are stored in
- # different variables, and can time out indendently of each other.
- exp.set('keyboard_response_1', None)
- exp.set('keyboard_response_time_1', None)
- keylist_1 = ['z', 'm']
- exp.set('keyboard_response_2', None)
- exp.set('keyboard_response_time_2', None)
- keylist_2 = ['1', '2', '3', '4']
- # Create a keyboard object that doesn't block the
- # experiment, so we can use it to poll for keypresses
- # continuously.
- my_keyboard = keyboard(exp, timeout=0)
- my_keyboard.flush()
- # Loop until we timeout
- start_time = self.time()
- while self.time() - timeout < start_time:
- key, key_time = my_keyboard.get_key()
- # If a key from keylist 1 is pressed, set keyboard_response_1
- # and keyboard_response_time_1. Also, set key_list_1 to [], so
- # that we do not capture multiple keypresses from this list.
- if key in keylist_1:
- exp.set('keyboard_response_1', key)
- exp.set('keyboard_response_time_1', key_time - start_time)
- keylist_1 = []
- # The same principle is applied for keylist 2.
- if key in keylist_2:
- exp.set('keyboard_response_2', key)
- exp.set('keyboard_response_time_2', key_time - start_time)
- keylist_2 = []
- # Create a variable to check the response against the expected response:
- if self.get('keyboard_response_1') == self.get('correct_ongoing_response'):
- correct_1 = '1'
- else:
- correct_1 = '0'
- exp.set("correct_1", correct_1)
- # Create a variable to check the response against the expected response:
- if self.get('keyboard_response_2') == self.get('correct_cue_response'):
- correct_2 = '1'
- else:
- correct_2 = '0'
- exp.set("correct_2", correct_2)
- __end__
- set _prepare ""
- set description "Executes Python code"
- define text_display experiment_end
- set foreground "#000000"
- set font_size "20"
- set description "Presents a display consisting of text"
- set maxchar "50"
- set align "center"
- __content__
- This is the end of the experiment
- Thank you once again for taking part.
- <b>Try not to disturb other participants</b>
- Please quietly raise your hand to indicate that you have finished.
- You will receive a full debrief and may then leave.
- __end__
- set background "#ffffff"
- set duration "keypress"
- set font_family "sans"
- define inline_script image_points
- set _run ""
- ___prepare__
- # Make lists of (x, y) values for image1 and image2:
- points1 = [(64,256),(96,256),(128,256),(160,256),(192,256),(224,256),(256,256),(288,256),(320,256),(352,256),(384,256),(416,256),(448,256),(480,256),\
- (64,288),(96,288),(128,288),(160,288),(192,288),(224,288),(256,288),(288,288),(320,288),(352,288),(384,288),(416,288),(448,288),(480,288),\
- (64,320),(96,320),(128,320),(160,320),(192,320),(224,320),(256,320),(288,320),(320,320),(352,320),(384,320),(416,320),(448,320),(480,320),\
- (64,352),(96,352),(128,352),(160,352),(192,352),(224,352),(256,352),(288,352),(320,352),(352,352),(384,352),(416,352),(448,352),(480,352),\
- (64,384),(96,384),(128,384),(160,384),(192,384),(224,384),(256,384),(288,384),(320,384),(352,384),(384,384),(416,384),(448,384),(480,384),\
- (64,416),(96,416),(128,416),(160,416),(192,416),(224,416),(256,416),(288,416),(320,416),(352,416),(384,416),(416,416),(448,416),(480,416),\
- (64,448),(96,448),(128,448),(160,448),(192,448),(224,448),(256,448),(288,448),(320,448),(352,448),(384,448),(416,448),(448,448),(480,448),\
- (64,480),(96,480),(128,480),(160,480),(192,480),(224,480),(256,480),(288,480),(320,480),(352,480),(384,480),(416,480),(448,480),(480,480),\
- (64,512),(96,512),(128,512),(160,512),(192,512),(224,512),(256,512),(288,512),(320,512),(352,512),(384,512),(416,512),(448,512),(480,512)]
- points2 = [(544,256),(576,256),(608,256),(640,256),(672,256),(704,256),(736,256),(768,256),(800,256),(832,256),(864,256),(896,256),(928,256),(960,256),\
- (544,288),(576,288),(608,288),(640,288),(672,288),(704,288),(736,288),(768,288),(800,288),(832,288),(864,288),(896,288),(928,288),(960,288),\
- (544,320),(576,320),(608,320),(640,320),(672,320),(704,320),(736,320),(768,320),(800,320),(832,320),(864,320),(896,320),(928,320),(960,320),\
- (544,352),(576,352),(608,352),(640,352),(672,352),(704,352),(736,352),(768,352),(800,352),(832,352),(864,352),(896,352),(928,352),(960,352),\
- (544,384),(576,384),(608,384),(640,384),(672,384),(704,384),(736,384),(768,384),(800,384),(832,384),(864,384),(896,384),(928,384),(960,384),\
- (544,416),(576,416),(608,416),(640,416),(672,416),(704,416),(736,416),(768,416),(800,416),(832,416),(864,416),(896,416),(928,416),(960,416),\
- (544,448),(576,448),(608,448),(640,448),(672,448),(704,448),(736,448),(768,448),(800,448),(832,448),(864,448),(896,448),(928,448),(960,448),\
- (544,480),(576,480),(608,480),(640,480),(672,480),(704,480),(736,480),(768,480),(800,480),(832,480),(864,480),(896,480),(928,480),(960,480),\
- (544,512),(576,512),(608,512),(640,512),(672,512),(704,512),(736,512),(768,512),(800,512),(832,512),(864,512),(896,512),(928,512),(960,512)]
- # Make image point lists global:
- global points1, points2
- __end__
- set description "Executes Python code"
- define sequence s2_sequence
- set flush_keyboard "yes"
- set description "Runs a number of items in sequence"
- run s2_block_loop "always"
- define loop s4_block_loop
- set repeat "1"
- set description "Repeatedly runs another item"
- set skip "0"
- set item "s4_trial_sequence"
- set column_order "match;frame_colour;pair_colour;line_style;line_width;correct_response"
- set cycles "50"
- set order "sequential"
- setcycle 0 line_width "3"
- setcycle 0 correct_response ""
- setcycle 0 frame_colour "Black"
- setcycle 0 pair_colour "Black"
- setcycle 0 line_style ""
- setcycle 0 match "n"
- setcycle 1 line_width "3"
- setcycle 1 correct_response ""
- setcycle 1 frame_colour "Black"
- setcycle 1 pair_colour "Black"
- setcycle 1 line_style ""
- setcycle 1 match "n"
- setcycle 2 line_width "3"
- setcycle 2 correct_response ""
- setcycle 2 frame_colour "Black"
- setcycle 2 pair_colour "Black"
- setcycle 2 line_style ""
- setcycle 2 match "y"
- setcycle 3 line_width "3"
- setcycle 3 correct_response ""
- setcycle 3 frame_colour "Black"
- setcycle 3 pair_colour "Black"
- setcycle 3 line_style ""
- setcycle 3 match "y"
- setcycle 4 line_width "3"
- setcycle 4 correct_response "3"
- setcycle 4 frame_colour "Yellow"
- setcycle 4 pair_colour "Black"
- setcycle 4 line_style ""
- setcycle 4 match "y"
- setcycle 5 line_width "3"
- setcycle 5 correct_response ""
- setcycle 5 frame_colour "Black"
- setcycle 5 pair_colour "Black"
- setcycle 5 line_style ""
- setcycle 5 match "n"
- setcycle 6 line_width "3"
- setcycle 6 correct_response ""
- setcycle 6 frame_colour "Black"
- setcycle 6 pair_colour "Black"
- setcycle 6 line_style ""
- setcycle 6 match "y"
- setcycle 7 line_width "3"
- setcycle 7 correct_response ""
- setcycle 7 frame_colour "Black"
- setcycle 7 pair_colour "Black"
- setcycle 7 line_style ""
- setcycle 7 match "n"
- setcycle 8 line_width "3"
- setcycle 8 correct_response ""
- setcycle 8 frame_colour "Black"
- setcycle 8 pair_colour "Black"
- setcycle 8 line_style ""
- setcycle 8 match "n"
- setcycle 9 line_width "3"
- setcycle 9 correct_response "4"
- setcycle 9 frame_colour "Black"
- setcycle 9 pair_colour "Pink"
- setcycle 9 line_style ""
- setcycle 9 match "n"
- setcycle 10 line_width "3"
- setcycle 10 correct_response ""
- setcycle 10 frame_colour "Black"
- setcycle 10 pair_colour "Black"
- setcycle 10 line_style ""
- setcycle 10 match "y"
- setcycle 11 line_width "3"
- setcycle 11 correct_response ""
- setcycle 11 frame_colour "Black"
- setcycle 11 pair_colour "Black"
- setcycle 11 line_style ""
- setcycle 11 match "n"
- setcycle 12 line_width "3"
- setcycle 12 correct_response ""
- setcycle 12 frame_colour "Black"
- setcycle 12 pair_colour "Black"
- setcycle 12 line_style ""
- setcycle 12 match "n"
- setcycle 13 line_width "3"
- setcycle 13 correct_response ""
- setcycle 13 frame_colour "Black"
- setcycle 13 pair_colour "Black"
- setcycle 13 line_style ""
- setcycle 13 match "n"
- setcycle 14 line_width "3"
- setcycle 14 correct_response "2"
- setcycle 14 frame_colour "Black"
- setcycle 14 pair_colour "Black"
- setcycle 14 line_style "dash"
- setcycle 14 match "n"
- setcycle 15 line_width "3"
- setcycle 15 correct_response ""
- setcycle 15 frame_colour "Black"
- setcycle 15 pair_colour "Black"
- setcycle 15 line_style ""
- setcycle 15 match "y"
- setcycle 16 line_width "3"
- setcycle 16 correct_response ""
- setcycle 16 frame_colour "Black"
- setcycle 16 pair_colour "Black"
- setcycle 16 line_style ""
- setcycle 16 match "y"
- setcycle 17 line_width "3"
- setcycle 17 correct_response ""
- setcycle 17 frame_colour "Black"
- setcycle 17 pair_colour "Black"
- setcycle 17 line_style ""
- setcycle 17 match "y"
- setcycle 18 line_width "3"
- setcycle 18 correct_response ""
- setcycle 18 frame_colour "Black"
- setcycle 18 pair_colour "Black"
- setcycle 18 line_style ""
- setcycle 18 match "y"
- setcycle 19 line_width "5"
- setcycle 19 correct_response "1"
- setcycle 19 frame_colour "Black"
- setcycle 19 pair_colour "Black"
- setcycle 19 line_style ""
- setcycle 19 match "n"
- setcycle 20 line_width "3"
- setcycle 20 correct_response ""
- setcycle 20 frame_colour "Black"
- setcycle 20 pair_colour "Black"
- setcycle 20 line_style ""
- setcycle 20 match "y"
- setcycle 21 line_width "3"
- setcycle 21 correct_response ""
- setcycle 21 frame_colour "Black"
- setcycle 21 pair_colour "Black"
- setcycle 21 line_style ""
- setcycle 21 match "y"
- setcycle 22 line_width "3"
- setcycle 22 correct_response ""
- setcycle 22 frame_colour "Black"
- setcycle 22 pair_colour "Black"
- setcycle 22 line_style ""
- setcycle 22 match "n"
- setcycle 23 line_width "3"
- setcycle 23 correct_response ""
- setcycle 23 frame_colour "Black"
- setcycle 23 pair_colour "Black"
- setcycle 23 line_style ""
- setcycle 23 match "y"
- setcycle 24 line_width "3"
- setcycle 24 correct_response "2"
- setcycle 24 frame_colour "Black"
- setcycle 24 pair_colour "Black"
- setcycle 24 line_style "dash"
- setcycle 24 match "y"
- setcycle 25 line_width "3"
- setcycle 25 correct_response ""
- setcycle 25 frame_colour "Black"
- setcycle 25 pair_colour "Black"
- setcycle 25 line_style ""
- setcycle 25 match "n"
- setcycle 26 line_width "3"
- setcycle 26 correct_response ""
- setcycle 26 frame_colour "Black"
- setcycle 26 pair_colour "Black"
- setcycle 26 line_style ""
- setcycle 26 match "y"
- setcycle 27 line_width "3"
- setcycle 27 correct_response ""
- setcycle 27 frame_colour "Black"
- setcycle 27 pair_colour "Black"
- setcycle 27 line_style ""
- setcycle 27 match "n"
- setcycle 28 line_width "3"
- setcycle 28 correct_response ""
- setcycle 28 frame_colour "Black"
- setcycle 28 pair_colour "Black"
- setcycle 28 line_style ""
- setcycle 28 match "y"
- setcycle 29 line_width "3"
- setcycle 29 correct_response ""
- setcycle 29 frame_colour "Black"
- setcycle 29 pair_colour "Black"
- setcycle 29 line_style ""
- setcycle 29 match "y"
- setcycle 30 line_width "3"
- setcycle 30 correct_response ""
- setcycle 30 frame_colour "Black"
- setcycle 30 pair_colour "Black"
- setcycle 30 line_style ""
- setcycle 30 match "y"
- setcycle 31 line_width "3"
- setcycle 31 correct_response ""
- setcycle 31 frame_colour "Black"
- setcycle 31 pair_colour "Black"
- setcycle 31 line_style ""
- setcycle 31 match "n"
- setcycle 32 line_width "3"
- setcycle 32 correct_response ""
- setcycle 32 frame_colour "Black"
- setcycle 32 pair_colour "Black"
- setcycle 32 line_style ""
- setcycle 32 match "n"
- setcycle 33 line_width "3"
- setcycle 33 correct_response ""
- setcycle 33 frame_colour "Black"
- setcycle 33 pair_colour "Black"
- setcycle 33 line_style ""
- setcycle 33 match "n"
- setcycle 34 line_width "3"
- setcycle 34 correct_response "4"
- setcycle 34 frame_colour "Black"
- setcycle 34 pair_colour "Pink"
- setcycle 34 line_style ""
- setcycle 34 match "n"
- setcycle 35 line_width "3"
- setcycle 35 correct_response ""
- setcycle 35 frame_colour "Black"
- setcycle 35 pair_colour "Black"
- setcycle 35 line_style ""
- setcycle 35 match "y"
- setcycle 36 line_width "3"
- setcycle 36 correct_response ""
- setcycle 36 frame_colour "Black"
- setcycle 36 pair_colour "Black"
- setcycle 36 line_style ""
- setcycle 36 match "y"
- setcycle 37 line_width "3"
- setcycle 37 correct_response ""
- setcycle 37 frame_colour "Black"
- setcycle 37 pair_colour "Black"
- setcycle 37 line_style ""
- setcycle 37 match "n"
- setcycle 38 line_width "3"
- setcycle 38 correct_response ""
- setcycle 38 frame_colour "Black"
- setcycle 38 pair_colour "Black"
- setcycle 38 line_style ""
- setcycle 38 match "n"
- setcycle 39 line_width "3"
- setcycle 39 correct_response ""
- setcycle 39 frame_colour "Black"
- setcycle 39 pair_colour "Black"
- setcycle 39 line_style ""
- setcycle 39 match "y"
- setcycle 40 line_width "3"
- setcycle 40 correct_response ""
- setcycle 40 frame_colour "Black"
- setcycle 40 pair_colour "Black"
- setcycle 40 line_style ""
- setcycle 40 match "y"
- setcycle 41 line_width "3"
- setcycle 41 correct_response ""
- setcycle 41 frame_colour "Black"
- setcycle 41 pair_colour "Black"
- setcycle 41 line_style ""
- setcycle 41 match "y"
- setcycle 42 line_width "3"
- setcycle 42 correct_response ""
- setcycle 42 frame_colour "Black"
- setcycle 42 pair_colour "Black"
- setcycle 42 line_style ""
- setcycle 42 match "y"
- setcycle 43 line_width "3"
- setcycle 43 correct_response ""
- setcycle 43 frame_colour "Black"
- setcycle 43 pair_colour "Black"
- setcycle 43 line_style ""
- setcycle 43 match "y"
- setcycle 44 line_width "3"
- setcycle 44 correct_response "3"
- setcycle 44 frame_colour "Yellow"
- setcycle 44 pair_colour "Black"
- setcycle 44 line_style ""
- setcycle 44 match "n"
- setcycle 45 line_width "3"
- setcycle 45 correct_response ""
- setcycle 45 frame_colour "Black"
- setcycle 45 pair_colour "Black"
- setcycle 45 line_style ""
- setcycle 45 match "n"
- setcycle 46 line_width "3"
- setcycle 46 correct_response ""
- setcycle 46 frame_colour "Black"
- setcycle 46 pair_colour "Black"
- setcycle 46 line_style ""
- setcycle 46 match "n"
- setcycle 47 line_width "3"
- setcycle 47 correct_response ""
- setcycle 47 frame_colour "Black"
- setcycle 47 pair_colour "Black"
- setcycle 47 line_style ""
- setcycle 47 match "y"
- setcycle 48 line_width "5"
- setcycle 48 correct_response "1"
- setcycle 48 frame_colour "Black"
- setcycle 48 pair_colour "Black"
- setcycle 48 line_style ""
- setcycle 48 match "n"
- setcycle 49 line_width "3"
- setcycle 49 correct_response ""
- setcycle 49 frame_colour "Black"
- setcycle 49 pair_colour "Black"
- setcycle 49 line_style ""
- setcycle 49 match "n"
- run s4_trial_sequence
- define loop s3
- set repeat "1"
- set description "Repeatedly runs another item"
- set item "s3_sequence"
- set column_order ""
- set cycles "1"
- set order "sequential"
- run s3_sequence
- define loop s2_block_loop
- set repeat "1"
- set description "Repeatedly runs another item"
- set skip "0"
- set item "s2_trial_sequence"
- set column_order "match;frame_colour;pair_colour;correct_response"
- set cycles "50"
- set order "sequential"
- setcycle 0 pair_colour "Black"
- setcycle 0 correct_response ""
- setcycle 0 frame_colour "Black"
- setcycle 0 match "y"
- setcycle 1 pair_colour "Black"
- setcycle 1 correct_response ""
- setcycle 1 frame_colour "Black"
- setcycle 1 match "n"
- setcycle 2 pair_colour "Black"
- setcycle 2 correct_response ""
- setcycle 2 frame_colour "Black"
- setcycle 2 match "y"
- setcycle 3 pair_colour "Black"
- setcycle 3 correct_response ""
- setcycle 3 frame_colour "Black"
- setcycle 3 match "n"
- setcycle 4 pair_colour "Black"
- setcycle 4 correct_response ""
- setcycle 4 frame_colour "Black"
- setcycle 4 match "y"
- setcycle 5 pair_colour "Black"
- setcycle 5 correct_response ""
- setcycle 5 frame_colour "Black"
- setcycle 5 match "y"
- setcycle 6 pair_colour "Black"
- setcycle 6 correct_response ""
- setcycle 6 frame_colour "Black"
- setcycle 6 match "n"
- setcycle 7 pair_colour "Black"
- setcycle 7 correct_response ""
- setcycle 7 frame_colour "Black"
- setcycle 7 match "y"
- setcycle 8 pair_colour "Black"
- setcycle 8 correct_response ""
- setcycle 8 frame_colour "Black"
- setcycle 8 match "y"
- setcycle 9 pair_colour "Purple"
- setcycle 9 correct_response "1"
- setcycle 9 frame_colour "Black"
- setcycle 9 match "y"
- setcycle 10 pair_colour "Black"
- setcycle 10 correct_response ""
- setcycle 10 frame_colour "Black"
- setcycle 10 match "n"
- setcycle 11 pair_colour "Black"
- setcycle 11 correct_response ""
- setcycle 11 frame_colour "Black"
- setcycle 11 match "n"
- setcycle 12 pair_colour "Black"
- setcycle 12 correct_response ""
- setcycle 12 frame_colour "Black"
- setcycle 12 match "n"
- setcycle 13 pair_colour "Black"
- setcycle 13 correct_response ""
- setcycle 13 frame_colour "Black"
- setcycle 13 match "n"
- setcycle 14 pair_colour "Black"
- setcycle 14 correct_response ""
- setcycle 14 frame_colour "Black"
- setcycle 14 match "y"
- setcycle 15 pair_colour "Black"
- setcycle 15 correct_response ""
- setcycle 15 frame_colour "Black"
- setcycle 15 match "n"
- setcycle 16 pair_colour "Black"
- setcycle 16 correct_response ""
- setcycle 16 frame_colour "Black"
- setcycle 16 match "y"
- setcycle 17 pair_colour "Black"
- setcycle 17 correct_response ""
- setcycle 17 frame_colour "Black"
- setcycle 17 match "n"
- setcycle 18 pair_colour "Black"
- setcycle 18 correct_response ""
- setcycle 18 frame_colour "Black"
- setcycle 18 match "n"
- setcycle 19 pair_colour "Black"
- setcycle 19 correct_response ""
- setcycle 19 frame_colour "Black"
- setcycle 19 match "n"
- setcycle 20 pair_colour "Black"
- setcycle 20 correct_response ""
- setcycle 20 frame_colour "Black"
- setcycle 20 match "n"
- setcycle 21 pair_colour "Black"
- setcycle 21 correct_response ""
- setcycle 21 frame_colour "Black"
- setcycle 21 match "n"
- setcycle 22 pair_colour "Black"
- setcycle 22 correct_response ""
- setcycle 22 frame_colour "Black"
- setcycle 22 match "n"
- setcycle 23 pair_colour "Black"
- setcycle 23 correct_response ""
- setcycle 23 frame_colour "Black"
- setcycle 23 match "y"
- setcycle 24 pair_colour "Black"
- setcycle 24 correct_response "2"
- setcycle 24 frame_colour "Blue"
- setcycle 24 match "y"
- setcycle 25 pair_colour "Black"
- setcycle 25 correct_response ""
- setcycle 25 frame_colour "Black"
- setcycle 25 match "n"
- setcycle 26 pair_colour "Black"
- setcycle 26 correct_response ""
- setcycle 26 frame_colour "Black"
- setcycle 26 match "y"
- setcycle 27 pair_colour "Black"
- setcycle 27 correct_response ""
- setcycle 27 frame_colour "Black"
- setcycle 27 match "y"
- setcycle 28 pair_colour "Black"
- setcycle 28 correct_response ""
- setcycle 28 frame_colour "Black"
- setcycle 28 match "y"
- setcycle 29 pair_colour "Black"
- setcycle 29 correct_response ""
- setcycle 29 frame_colour "Black"
- setcycle 29 match "y"
- setcycle 30 pair_colour "Black"
- setcycle 30 correct_response ""
- setcycle 30 frame_colour "Black"
- setcycle 30 match "n"
- setcycle 31 pair_colour "Black"
- setcycle 31 correct_response ""
- setcycle 31 frame_colour "Black"
- setcycle 31 match "y"
- setcycle 32 pair_colour "Black"
- setcycle 32 correct_response ""
- setcycle 32 frame_colour "Black"
- setcycle 32 match "n"
- setcycle 33 pair_colour "Black"
- setcycle 33 correct_response ""
- setcycle 33 frame_colour "Black"
- setcycle 33 match "y"
- setcycle 34 pair_colour "Black"
- setcycle 34 correct_response ""
- setcycle 34 frame_colour "Black"
- setcycle 34 match "n"
- setcycle 35 pair_colour "Black"
- setcycle 35 correct_response ""
- setcycle 35 frame_colour "Black"
- setcycle 35 match "y"
- setcycle 36 pair_colour "Black"
- setcycle 36 correct_response ""
- setcycle 36 frame_colour "Black"
- setcycle 36 match "y"
- setcycle 37 pair_colour "Black"
- setcycle 37 correct_response ""
- setcycle 37 frame_colour "Black"
- setcycle 37 match "n"
- setcycle 38 pair_colour "Black"
- setcycle 38 correct_response ""
- setcycle 38 frame_colour "Black"
- setcycle 38 match "y"
- setcycle 39 pair_colour "Black"
- setcycle 39 correct_response "2"
- setcycle 39 frame_colour "Blue"
- setcycle 39 match "y"
- setcycle 40 pair_colour "Black"
- setcycle 40 correct_response ""
- setcycle 40 frame_colour "Black"
- setcycle 40 match "n"
- setcycle 41 pair_colour "Black"
- setcycle 41 correct_response ""
- setcycle 41 frame_colour "Black"
- setcycle 41 match "n"
- setcycle 42 pair_colour "Black"
- setcycle 42 correct_response ""
- setcycle 42 frame_colour "Black"
- setcycle 42 match "y"
- setcycle 43 pair_colour "Black"
- setcycle 43 correct_response ""
- setcycle 43 frame_colour "Black"
- setcycle 43 match "n"
- setcycle 44 pair_colour "Black"
- setcycle 44 correct_response ""
- setcycle 44 frame_colour "Black"
- setcycle 44 match "y"
- setcycle 45 pair_colour "Black"
- setcycle 45 correct_response ""
- setcycle 45 frame_colour "Black"
- setcycle 45 match "y"
- setcycle 46 pair_colour "Black"
- setcycle 46 correct_response ""
- setcycle 46 frame_colour "Black"
- setcycle 46 match "n"
- setcycle 47 pair_colour "Black"
- setcycle 47 correct_response ""
- setcycle 47 frame_colour "Black"
- setcycle 47 match "n"
- setcycle 48 pair_colour "Black"
- setcycle 48 correct_response ""
- setcycle 48 frame_colour "Black"
- setcycle 48 match "y"
- setcycle 49 pair_colour "Purple"
- setcycle 49 correct_response "1"
- setcycle 49 frame_colour "Black"
- setcycle 49 match "n"
- run s2_trial_sequence
- define feedback s_feedback
- set duration "1000"
- set reset_variables "yes"
- set description "Provides countdown distractor to participants"
- draw textline 0 0 "[s_countdown]" center=1 color=Black font_family="sans" font_size=50 font_italic=no font_bold=no show_if="always" html="yes"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement