Guest User

Untitled

a guest
Aug 29th, 2016
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.89 KB | None | 0 0
  1. # Generated by OpenSesame 2.8.1 (Gutsy Gibson)
  2. # Mon Aug 29 11:00:02 2016 (nt)
  3. # <http://www.cogsci.nl/opensesame>
  4.  
  5. set mouse_backend "psycho"
  6. set subject_parity "even"
  7. set height "768"
  8. set font_family "mono"
  9. set font_italic "no"
  10. set synth_backend "legacy"
  11. set title "New experiment"
  12. set coordinates "relative"
  13. set start "experiment"
  14. set sampler_backend "legacy"
  15. set transparent_variables "no"
  16. set foreground "white"
  17. set font_bold "no"
  18. set description "Default description"
  19. set background "black"
  20. set font_size "18"
  21. set keyboard_backend "psycho"
  22. set canvas_backend "psycho"
  23. set compensation "0"
  24. set bidi "no"
  25. set subject_nr "0"
  26. set width "1024"
  27.  
  28. define loop Choice
  29. set repeat "0.1"
  30. set description "Repeatedly runs another item"
  31. set item "Trial"
  32. set break_if "never"
  33. set column_order "PicName"
  34. set cycles "44"
  35. set order "random"
  36. setcycle 0 PicName "anger1.jpg"
  37. setcycle 1 PicName "anger2.jpg"
  38. setcycle 2 PicName "anger3.jpg"
  39. setcycle 3 PicName "anger4.jpg"
  40. setcycle 4 PicName "anger5.jpg"
  41. setcycle 5 PicName "anger6.jpg"
  42. setcycle 6 PicName "anger7.jpg"
  43. setcycle 7 PicName "disgust1.jpg"
  44. setcycle 8 PicName "disgust2.jpg"
  45. setcycle 9 PicName "disgust3.jpg"
  46. setcycle 10 PicName "disgust4.jpg"
  47. setcycle 11 PicName "disgust5.jpg"
  48. setcycle 12 PicName "fear1.jpg"
  49. setcycle 13 PicName "fear2.jpg"
  50. setcycle 14 PicName "fear3.jpg"
  51. setcycle 15 PicName "fear4.jpg"
  52. setcycle 16 PicName "fear5.jpg"
  53. setcycle 17 PicName "fear6.jpg"
  54. setcycle 18 PicName "fear7.jpg"
  55. setcycle 19 PicName "happy1.jpg"
  56. setcycle 20 PicName "happy2.jpg"
  57. setcycle 21 PicName "happy3.jpg"
  58. setcycle 22 PicName "happy4.jpg"
  59. setcycle 23 PicName "happy5.jpg"
  60. setcycle 24 PicName "happy6.jpg"
  61. setcycle 25 PicName "neutral1.jpg"
  62. setcycle 26 PicName "neutral2.jpg"
  63. setcycle 27 PicName "neutral3.jpg"
  64. setcycle 28 PicName "neutral4.jpg"
  65. setcycle 29 PicName "sad1.jpg"
  66. setcycle 30 PicName "sad2.jpg"
  67. setcycle 31 PicName "sad3.jpg"
  68. setcycle 32 PicName "sad4.jpg"
  69. setcycle 33 PicName "sad5.jpg"
  70. setcycle 34 PicName "sad6.jpg"
  71. setcycle 35 PicName "sad7.jpg"
  72. setcycle 36 PicName "suprised1.jpg"
  73. setcycle 37 PicName "suprised2.jpg"
  74. setcycle 38 PicName "suprised3.jpg"
  75. setcycle 39 PicName "suprised4.jpg"
  76. setcycle 40 PicName "suprised5.jpg"
  77. setcycle 41 PicName "suprised6.jpg"
  78. setcycle 42 PicName "suprised7.jpg"
  79. setcycle 43 PicName "suprised8.jpg"
  80. run Trial
  81.  
  82. define sequence EmotionAnalysisPilot
  83. set flush_keyboard "yes"
  84. set description "Runs a number of items in sequence"
  85. run welcome "always"
  86. run Choice "always"
  87. run Thanks "always"
  88.  
  89. define sketchpad Thanks
  90. set duration "keypress"
  91. set description "Displays stimuli"
  92. draw textline 0 0 "Thank you for your participaion and valuable feedback" center=1 color=white font_family="mono" font_size=18 font_italic=no font_bold=no show_if="always" html="yes"
  93.  
  94. define sequence Trial
  95. set flush_keyboard "yes"
  96. set description "Runs a number of items in sequence"
  97. run sketchpad "always"
  98. run inline_script "always"
  99. run advanced_delay "always"
  100. run form_multiple_choice "always"
  101. run slider "always"
  102. run logger "always"
  103.  
  104. define logger _logger
  105. set ignore_missing "no"
  106. set description "Logs experimental data"
  107. set auto_log "no"
  108. set use_quotes "no"
  109. log "form_var"
  110.  
  111. define advanced_delay advanced_delay
  112. set duration "500"
  113. set jitter "0"
  114. set description "Waits for a specified duration"
  115. set jitter_mode "Uniform"
  116.  
  117. define sequence experiment
  118. run EmotionAnalysisPilot "always"
  119.  
  120. define feedback feedback
  121.  
  122. define form_multiple_choice form_multiple_choice
  123. set allow_multiple "no"
  124. set description "A simple multiple choice item"
  125. set question "What does this image make you feel?"
  126. set button_text "Ok"
  127. set advance_immediately "yes"
  128. set form_title "Question"
  129. set form_var "chosen"
  130. __options__
  131. Happy
  132. Angry
  133. Suprised
  134. Sad
  135. Disgusted
  136. Neutral
  137. Scared
  138. __end__
  139.  
  140. define inline_script inline_script
  141. ___run__
  142. from datetime import datetime
  143. my_sysytem_time =datetime.now().strftime('%d-%m-%y %H:%M:%f')
  144. __end__
  145. set _prepare ""
  146. set description "Executes Python code"
  147.  
  148. define logger logger
  149. set ignore_missing "yes"
  150. set description "Logs experimental data"
  151. set auto_log "no"
  152. set use_quotes "yes"
  153. log "response"
  154. log "time_Choice"
  155. log "PicName"
  156. log "chosen"
  157. log "my_system_time"
  158.  
  159. define sketchpad sketchpad
  160. set duration "0"
  161. set description "Displays stimuli"
  162. draw image 0 0 "[PicName]" scale=1 center=1 show_if="always"
  163.  
  164. define slider slider
  165. set bg_colour "black"
  166. set imgname "[PicName]"
  167. set fg_colour "white"
  168. set sf_colour "red"
  169. set leftlabel "Very Low"
  170. set show_img "yes"
  171. set question "To what extent can you relate the image to the emotion?"
  172. set slider_h "10"
  173. set slider_w "400"
  174. set rightlabel "Very High"
  175. set txt_colour "white"
  176. set accept_text "Click to accept"
  177. set description "Presents a question and slider"
  178.  
  179. define sketchpad welcome
  180. set duration "keypress"
  181. set start_response_interval "no"
  182. set description "Displays stimuli"
  183. draw textline 0 -80 "Welcome to the Study" center=1 color=white font_family="mono" font_size=18 font_italic=no font_bold=no show_if="always" html="yes"
  184. draw textline 0 -45 "You will be shown several pictures one after the other" center=1 color=white font_family="mono" font_size=18 font_italic=no font_bold=no show_if="always" html="yes"
  185. draw textline 0 -10 "Every picture will be followed by a Multiple Choice Question and an Intensity Rating Scale" center=1 color=white font_family="mono" font_size=18 font_italic=no font_bold=no show_if="always" html="yes"
  186. draw textline 0 30 "You will be using the mouse to choose your response and rate the intensity scale." center=1 color=white font_family="mono" font_size=18 font_italic=no font_bold=no show_if="always" html="yes"
  187. draw textline 0 64 "Press spacebar to proceed" center=1 color=white font_family="mono" font_size=18 font_italic=no font_bold=no show_if="always" html="yes"
Add Comment
Please, Sign In to add comment