Exemplo n.º 1
0
def LoadEyetrackingModules():
    """load eyetracking modules and check connection"""

    ###Connect over network to eyetrike and check the connection
    comms = pupil_comms()  #Initiate a communication with eyetrike
    #Check the connection is live
    connected = comms.check_connection()

    if not connected:
        print("Cannot connect to Eyetrike. Check network")
        raise Exception("Could not connect to Eyetrike")
    else:
        pass

    return (comms)
Exemplo n.º 2
0
def LoadEyetrackingModules():
    """load eyetracking modules and check connection"""

    from eyetrike_calibration_standard import Markers, run_calibration
    from eyetrike_accuracy_standard import run_accuracy
    from UDP_comms import pupil_comms

    ###Connect over network to eyetrike and check the connection
    comms = pupil_comms()  #Initiate a communication with eyetrike
    #Check the connection is live
    connected = comms.check_connection()

    if not connected:
        print("Cannot connect to Eyetrike. Check network")
        raise Exception("Could not connect to Eyetrike")
    else:
        pass
Exemplo n.º 3
0
				#Add buffer point
				#pt_buffer.visible(1) 
				#pt.visible(0)
				yield viztask.waitTime(.75) #wait for half a second
				pt_buffer.visible(0) #remove buffer point
				pt.visible(1)

		yield viztask.waitTime(.5)

	#viz.quit()
	
if __name__ == '__main__':
	
	imagepath = 'C:/VENLAB data/shared_modules/textures/' #relative paths for images	
	
	comms = pupil_comms() #Initiate a communication with eyetrike	
	#Check the connection is live
	connected = comms.check_connection()

	if not connected:
		print("Cannot connect to Eyetrike. Check network")
	else:			
		initialise_display()
		
		fname = 'Testing'
		viztask.schedule(run_calibration(comms, fname))
		
#	calib_satisfied = False
#		
#	while not calib_satisfied:
#