Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Generated by OpenSesame 2.8.0~pre11 (Gutsy Gibson)
- # Fri Apr 11 14:28:38 2014 (nt)
- # <http://www.cogsci.nl/opensesame>
- set mouse_backend "psycho"
- set subject_parity "even"
- set height "768"
- set font_family "mono"
- set font_italic "no"
- set synth_backend "legacy"
- set title "RDM"
- set coordinates "relative"
- set start "experiment"
- set sampler_backend "legacy"
- set transparent_variables "no"
- set foreground "white"
- set font_bold "no"
- set description "Default description"
- set background "black"
- set font_size "18"
- set keyboard_backend "psycho"
- set canvas_backend "psycho"
- set compensation "0"
- set bidi "yes"
- set subject_nr "0"
- set width "1024"
- define sketchpad welcome
- set duration "keypress"
- set start_response_interval "no"
- set description "Displays stimuli"
- 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"
- define feedback feedbackmistake
- set duration "keypress"
- set reset_variables "yes"
- set description "Provides feedback to the participant"
- draw line 0 0 0 0 penwidth=1 color=white show_if="always"
- draw line 0 0 0 0 penwidth=1 color=white show_if="always"
- draw line 0 0 0 0 penwidth=1 color=white show_if="always"
- define keyboard_response keyboard_response
- set allowed_responses "S;L"
- set description "Collects keyboard responses"
- set timeout "5000"
- set flush "yes"
- define sequence experiment
- run loop "always"
- define sequence trailsequence
- run inline_script "always"
- run keyboard_response "always"
- define inline_script inline_script
- ___run__
- from psychopy.visual import DotStim
- # Create a DotStim, which is automatically updated with every `draw()` call.
- 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')
- # Show 100 frames
- for i in range(400):
- ds.draw()
- win.flip()
- __end__
- set _prepare ""
- set description "Executes Python code"
- define notepad getting_started
- __note__
- Hi,
- Welcome to OpenSesame 2.8.0 "Gutsy Gibson"!
- If you are new to OpenSesame, you may wish to follow one of the tutorials,
- which can be found online.
- There are also many example experiments, which may help you to get started
- with creating your own. These can be found in the "examples" folder provided
- with OpenSesame or, again, online,
- For more information, please refer to OpenSesame documentation area:
- - <http://osdoc.cogsci.nl/>
- And feel free to ask for help on the forum:
- - <http://forum.cogsci.nl/>
- Have fun with OpenSesame!
- --
- Sebastiaan
- __end__
- set description "Some pointers to help you get started!"
- define loop loop
- set repeat "1"
- set description "Repeatedly runs another item"
- set skip "0"
- set item "trailsequence"
- set break_if "never"
- set column_order "coher;dir"
- set cycles "4"
- set order "random"
- setcycle 0 coher ".5"
- setcycle 0 dir "0"
- setcycle 1 coher ".5"
- setcycle 1 dir "180"
- setcycle 2 coher ".05"
- setcycle 2 dir "0"
- setcycle 3 coher ".05"
- setcycle 3 dir "180"
- run trailsequence
Advertisement
Add Comment
Please, Sign In to add comment