Esempio n. 1
0
	def connect(self):
		'''
		Establishes connection to first device found
		'''
		self.handle = ANC350lib.Int32(0)
		try:
			ANC350lib.positionerConnect(0,ctypes.byref(self.handle)) #0 means "first device"
			print 'connected to first positioner'
		except Exception as e:
			print 'unable to connect!'
			raise e