--- API: 2.1 OpenSesame: 3.2.8 Platform: nt --- set width 1024 set uniform_coordinates yes set title "New experiment" set subject_parity even set subject_nr 0 set start experiment set sound_sample_size -16 set sound_freq 48000 set sound_channels 2 set sound_buf_size 1024 set round_decimals 2 set height 768 set fullscreen no set form_clicks no set foreground white set font_underline no set font_size 18 set font_italic no set font_family mono set font_bold no set experiment_path "C:\\Users\\j.den.hartog\\Downloads" set disable_garbage_collection yes set description "The main experiment item" set coordinates uniform set compensation 0 set canvas_backend xpyriment set background black define inline_script LPT0 set description "Executes Python code" ___run__ try: io.DlPortWritePortUchar(port, 0) except: print 'Failed to send trigger 0!' __end__ set _prepare "" define inline_script LPT1 set description "Executes Python code" ___run__ try: io.DlPortWritePortUchar(port, 1) except: print 'Failed to send trigger 1!' __end__ set _prepare "" define vu_ams Marker1 set description "Connect to VU-AMS device and send marker" set _vuams None set _use_without_vu_ams no set _use_title_checkbox yes set _send_marker 1 set _device_name autodetect define sequence experiment set flush_keyboard yes set description "Runs a number of items in sequence" run init always run loop always define inline_script init set description "Executes Python code" ___run__ try: from ctypes import windll global io io = windll.dlportio # requires dlportio.dll !!! except: print 'The parallel port couldn\'t be opened' port = 0x378 __end__ set _prepare "" define loop loop set source table set repeat 10 set order sequential set description "Repeatedly runs another item" set cycles 1 set continuous no set break_if_on_first yes set break_if never setcycle 0 new_column_1 " " run sequence define sequence sequence set flush_keyboard yes set description "Runs a number of items in sequence" run sketchpad always run LPT1 always run Marker1 always run LPT0 always define sketchpad sketchpad set start_response_interval no set reset_variables no set duration 1000 set description "Displays stimuli" draw textline center=1 color=white font_bold=no font_family=serif font_italic=no font_size=32 html=yes show_if=always text="TestVU-AMSserialDelay
Run: [count_sketchpad]" x=0 y=0 z_index=0