Guest User

Untitled

a guest
Aug 19th, 2013
187
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Generated by OpenSesame 0.27.3 (Frisky Freud)
  2. # Mon Aug 19 13:58:03 2013 (posix)
  3. # <http://www.cogsci.nl/opensesame>
  4.  
  5. set foreground "white"
  6. set subject_parity "even"
  7. set description "A template containing a practice and an experimental phase"
  8. set title "Extended template"
  9. set sampler_backend "legacy"
  10. set coordinates "relative"
  11. set height "768"
  12. set mouse_backend "xpyriment"
  13. set width "1024"
  14. set compensation "0"
  15. set keyboard_backend "legacy"
  16. set background "black"
  17. set subject_nr "0"
  18. set canvas_backend "xpyriment"
  19. set start "experiment"
  20. set synth_backend "legacy"
  21.  
  22. define notepad about_this_template
  23. __note__
  24. Hi,
  25.  
  26. This template already contains the basic structure
  27. needed for a typical experiment, consisting of a
  28. practice phase, followed by an experimental phase.
  29.  
  30. For more information, please refer to the website:
  31. <http://www.cogsci.nl/opensesame>
  32.  
  33. Have fun with OpenSesame!
  34.  
  35. --
  36.  
  37. Sebastiaan
  38. __end__
  39. set description "Some pointers to help you gest started!"
  40.  
  41. define feedback feedback
  42. set duration "keypress"
  43. set reset_variables "yes"
  44. set description "Provides feedback to the participant"
  45. draw textline 0 -96 "Your average response time was [avg_rt]ms" center=1 color=white font_family="mono" font_size=18 font_italic=no font_bold=no show_if="always"
  46. draw textline 0 32 "Press any key to continue" center=1 color=white font_family="mono" font_size=18 font_italic=no font_bold=no show_if="always"
  47. draw textline 0 -32 "Your accuracy was [acc]%" center=1 color=white font_family="mono" font_size=18 font_italic=no font_bold=no show_if="always"
  48.  
  49. define sketchpad end_of_experiment
  50. set duration "keypress"
  51. set description "A sketchpad notifying the participant that the experiment is finished"
  52. set start_response_interval "no"
  53. draw textline 0 0 "Press any key to exit" center=1 color=white font_family="mono" font_size=18 font_italic=no font_bold=no show_if="always"
  54.  
  55. define sketchpad end_of_practice
  56. set duration "keypress"
  57. set description "A sketchpad notifying the participant that the practice phase is finished"
  58. set start_response_interval "no"
  59. draw textline 0 0 "Press any key to continue" center=1 color=white font_family="mono" font_size=18 font_italic=no font_bold=no show_if="always"
  60.  
  61. define sketchpad sketchpad
  62. set duration "0"
  63. set description "Displays stimuli"
  64. set start_response_interval "no"
  65. draw textline -96 0 "This is trial [trial]" center=1 color=white font_family="mono" font_size=18 font_italic=no font_bold=no show_if="always"
  66.  
  67. define sequence experiment
  68. set flush_keyboard "yes"
  69. set description "The main sequence of the experiment"
  70. run text_display "always"
  71. run experimental_loop "always"
  72.  
  73. define loop practice_loop
  74. set repeat "1"
  75. set description "A loop containing one or more practice blocks"
  76. set item "block_sequence"
  77. set column_order "practice"
  78. set cycles "1"
  79. set order "random"
  80. setcycle 0 practice "yes"
  81. run block_sequence
  82.  
  83. define logger _logger
  84. set description "Logs experimental data"
  85.  
  86. define loop block_loop
  87. set repeat "1"
  88. set description "A single block of trials"
  89. set item "trial_sequence"
  90. set column_order "trial"
  91. set cycles "5"
  92. set order "random"
  93. setcycle 0 trial "1"
  94. setcycle 1 trial "2"
  95. setcycle 2 trial "3"
  96. setcycle 3 trial "4"
  97. setcycle 4 trial "5"
  98. run trial_sequence
  99.  
  100. define reset_feedback reset_feedback
  101.  
  102. define sequence trial_sequence
  103. set flush_keyboard "yes"
  104. set description "A single trial"
  105. run sketchpad "always"
  106. run keyboard_response "always"
  107. run logger "always"
  108. run inline_script "always"
  109.  
  110. define loop experimental_loop
  111. set repeat "1"
  112. set description "A loop containing one or more experimental blocks"
  113. set item "block_sequence"
  114. set column_order "practice"
  115. set cycles "1"
  116. set order "random"
  117. setcycle 0 practice "no"
  118. run block_sequence
  119.  
  120. define keyboard_response keyboard_response
  121. set correct_response "b"
  122. set description "Collects keyboard responses"
  123. set timeout "infinite"
  124. set flush "yes"
  125.  
  126. define inline_script inline_script
  127. ___run__
  128. if self.get('correct') == 0:
  129. exp.items['trial_sequence'].prepare()
  130. exp.items['trial_sequence'].run()
  131. __end__
  132. set _prepare ""
  133. set description "Executes Python code"
  134.  
  135. define sequence block_sequence
  136. set flush_keyboard "yes"
  137. set description "A sequence containing a single block of trials followed by feedback to the participant"
  138. run block_loop "always"
  139.  
  140. define logger logger
  141. set description "Logs experimental data"
  142.  
  143. define text_display text_display
  144. set foreground "white"
  145. set font_size "18"
  146. set description "Presents a display consisting of text"
  147. set maxchar "50"
  148. set align "center"
  149. __content__
  150. Welcome!
  151.  
  152. The correct response is always 'b'. If you give any other response, a given trial will be repeated until your response is correct.
  153. __end__
  154. set background "black"
  155. set duration "keypress"
  156. set font_family "mono"
  157.  
  158. define sketchpad instructions
  159. set duration "keypress"
  160. set start_response_interval "no"
  161. set description "A sketchpad containing the instructions for the participant"
  162. draw textline 0 0 "Press any key to begin!" center=1 color=white font_family="mono" font_size=18 font_italic=no font_bold=no show_if="always"
RAW Paste Data