Advertisement
Guest User

Untitled

a guest
May 18th, 2013
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.91 KB | None | 0 0
  1. # Generated by OpenSesame 0.27.2 (Frisky Freud)
  2. # Sat May 18 15:07:06 2013 (posix)
  3. # <http://www.cogsci.nl/opensesame>
  4.  
  5. set foreground "white"
  6. set subject_parity "even"
  7. set description "Default description"
  8. set title "New experiment"
  9. set compensation "0"
  10. set coordinates "relative"
  11. set height "768"
  12. set mouse_backend "xpyriment"
  13. set width "1024"
  14. set sampler_backend "legacy"
  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 feedback feedback
  23. set duration "keypress"
  24. set reset_variables "yes"
  25. set description "Provides feedback to the participant"
  26. draw textline 0 0 "resp1 = [Word_01_Response]" center=1 color=white font_family="mono" font_size=18 font_italic=no font_bold=no show_if="always"
  27. draw textline 0 128 "resp3 = [Word_03_Response]" center=1 color=white font_family="mono" font_size=18 font_italic=no font_bold=no show_if="always"
  28. draw textline 0 64 "resp2 = [Word_02_Response]" center=1 color=white font_family="mono" font_size=18 font_italic=no font_bold=no show_if="always"
  29.  
  30. define form_base form_base1
  31. # For the first text_input widget, set focus to 'yes', and set return_accepts to 'yes'
  32. # Focus = 'yes' indicates that the pp can start typing in this box immediately (without
  33. # having to click in it first).
  34. # Don't specify anything for the other widgets yet (just draw them)
  35. set margins "50;100;50;100"
  36. set rows "1;1;1;1;1"
  37. set spacing "20"
  38. set cols "1;1;1"
  39. set description "A generic form plug-in"
  40. widget 0 0 3 1 label center="no" text="What were the [Target_Color] words?"
  41. widget 0 1 1 1 text_input focus="yes" return_accepts="yes" var="Word_01_Response"
  42. widget 0 2 1 1 text_input
  43. widget 0 3 1 1 text_input
  44.  
  45.  
  46. define form_base form_base2
  47. # For the first text_input widget, set the text to "Word_01_Response" (to keep the previously-given
  48. # response on screen).
  49. # Now, set focus and return_accepts to "yes" for the SECOND text_input widget:
  50. set margins "50;100;50;100"
  51. set rows "1;1;1;1;1"
  52. set spacing "20"
  53. set cols "1;1;1"
  54. set description "A generic form plug-in"
  55. widget 0 0 3 1 label center="no" text="What were the [Target_Color] words?"
  56. widget 0 1 1 1 text_input text="[Word_01_Response]"
  57. widget 0 2 1 1 text_input focus="yes" return_accepts="yes" var="Word_02_Response"
  58. widget 0 3 1 1 text_input
  59.  
  60.  
  61. define form_base form_base3
  62. # For the last form_base item, fill both previous text input widgets with the given responses:
  63. # And set focus and return_accepts to 'yes' for the last item.
  64. set margins "50;100;50;100"
  65. set rows "1;1;1;1;1"
  66. set spacing "20"
  67. set cols "1;1;1"
  68. set description "A generic form plug-in"
  69. widget 0 0 3 1 label center="no" text="What were the [Target_Color] words?"
  70. widget 0 1 1 1 text_input text="[Word_01_Response]"
  71. widget 0 2 1 1 text_input text="[Word_02_Response]"
  72. widget 0 3 1 1 text_input focus="yes" return_accepts="yes" var="Word_03_Response"
  73.  
  74.  
  75. define loop experimental_loop
  76. set repeat "1"
  77. set description "Repeatedly runs another item"
  78. set item "trial_sequence"
  79. set column_order "Target_Color"
  80. set cycles "2"
  81. set order "random"
  82. setcycle 0 Target_Color "blue"
  83. setcycle 1 Target_Color "red"
  84. run trial_sequence
  85.  
  86. define sequence experiment
  87. run experimental_loop "always"
  88.  
  89. define sequence trial_sequence
  90. set flush_keyboard "yes"
  91. set description "Runs a number of items in sequence"
  92. run loop1 "always"
  93. run loop2 "always"
  94. run loop3 "always"
  95. run feedback "always"
  96. run logger "always"
  97.  
  98. define loop loop3
  99. set repeat "1"
  100. set description "Repeatedly runs another item"
  101. set item "form_base3"
  102. set column_order ""
  103. set cycles "1"
  104. set order "random"
  105. run form_base3
  106.  
  107. define loop loop2
  108. set item "form_base2"
  109. set cycles "1"
  110. set column_order ""
  111. run form_base2
  112.  
  113. define loop loop1
  114. set item "form_base1"
  115. set cycles "1"
  116. set column_order ""
  117. run form_base1
  118.  
  119. define logger logger
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement