Guest User

Untitled

a guest
Apr 11th, 2014
472
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.14 KB | None | 0 0
  1. # Generated by OpenSesame 2.8.0~pre11 (Gutsy Gibson)
  2. # Fri Apr 11 14:28:38 2014 (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 "RDM"
  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 "yes"
  25. set subject_nr "0"
  26. set width "1024"
  27.  
  28. define sketchpad welcome
  29. set duration "keypress"
  30. set start_response_interval "no"
  31. set description "Displays stimuli"
  32. draw textline 0 0 "OpenSesame 2.8.0 <i>Gutsy Gibson</i>" center=1 color=white font_family="serif" font_size=32 font_italic=no font_bold=no show_if="always" html="yes"
  33.  
  34. define feedback feedbackmistake
  35. set duration "keypress"
  36. set reset_variables "yes"
  37. set description "Provides feedback to the participant"
  38. draw line 0 0 0 0 penwidth=1 color=white show_if="always"
  39. draw line 0 0 0 0 penwidth=1 color=white show_if="always"
  40. draw line 0 0 0 0 penwidth=1 color=white show_if="always"
  41.  
  42. define keyboard_response keyboard_response
  43. set allowed_responses "S;L"
  44. set description "Collects keyboard responses"
  45. set timeout "5000"
  46. set flush "yes"
  47.  
  48. define sequence experiment
  49. run loop "always"
  50.  
  51. define sequence trailsequence
  52. run inline_script "always"
  53. run keyboard_response "always"
  54.  
  55. define inline_script inline_script
  56. ___run__
  57. from psychopy.visual import DotStim
  58. # Create a DotStim, which is automatically updated with every `draw()` call.
  59. ds = DotStim(win, fieldSize=900, speed=4, dotLife=3, nDots=400, coherence=self.get('coher'),dotSize=2.0,signalDots='different',dir=self.get('dir'),noiseDots='walk')
  60. # Show 100 frames
  61. for i in range(400):
  62. ds.draw()
  63. win.flip()
  64. __end__
  65. set _prepare ""
  66. set description "Executes Python code"
  67.  
  68. define notepad getting_started
  69. __note__
  70. Hi,
  71.  
  72. Welcome to OpenSesame 2.8.0 "Gutsy Gibson"!
  73.  
  74. If you are new to OpenSesame, you may wish to follow one of the tutorials,
  75. which can be found online.
  76.  
  77. There are also many example experiments, which may help you to get started
  78. with creating your own. These can be found in the "examples" folder provided
  79. with OpenSesame or, again, online,
  80.  
  81. For more information, please refer to OpenSesame documentation area:
  82.  
  83. - <http://osdoc.cogsci.nl/>
  84.  
  85. And feel free to ask for help on the forum:
  86.  
  87. - <http://forum.cogsci.nl/>
  88.  
  89. Have fun with OpenSesame!
  90.  
  91. --
  92.  
  93. Sebastiaan
  94. __end__
  95. set description "Some pointers to help you get started!"
  96.  
  97. define loop loop
  98. set repeat "1"
  99. set description "Repeatedly runs another item"
  100. set skip "0"
  101. set item "trailsequence"
  102. set break_if "never"
  103. set column_order "coher;dir"
  104. set cycles "4"
  105. set order "random"
  106. setcycle 0 coher ".5"
  107. setcycle 0 dir "0"
  108. setcycle 1 coher ".5"
  109. setcycle 1 dir "180"
  110. setcycle 2 coher ".05"
  111. setcycle 2 dir "0"
  112. setcycle 3 coher ".05"
  113. setcycle 3 dir "180"
  114. run trailsequence
Advertisement
Add Comment
Please, Sign In to add comment