def startIOHub():
 global io
 import time
 psychopy_mon_name = 'testMonitor'
 exp_code = 'events'
 sess_code = 'S_{0}'.format(long(time.mktime(time.localtime())))
 iohub_config = {'psychopy_monitor_name': psychopy_mon_name, 'mcu.iosync.MCU': dict(serial_port='auto', monitor_event_types=['AnalogInputEvent', 'DigitalInputEvent']), 'experiment_code': exp_code, 'session_code': sess_code}
 return launchHubServer(**iohub_config)

def startIOHub ( ) : global io import time psychopy_mon_name = 'testMonitor' exp_code = 'events' sess_code = 'S_{0}' . format ( long ( time . mktime ( time . localtime ( ) ) ) ) iohub_config = { 'psychopy_monitor_name' : psychopy_mon_name , 'mcu.iosync.MCU' : dict ( serial_port = 'auto' , monitor_event_types = [ 'AnalogInputEvent' , 'DigitalInputEvent' ] ) , 'experiment_code' : exp_code , 'session_code' : sess_code } return launchHubServer ( ** iohub_config )
starts the iohub process .