当前位置: 首页>>代码示例>>Python>>正文


Python ANC350lib类代码示例

本文整理汇总了Python中ANC350lib的典型用法代码示例。如果您正苦于以下问题:Python ANC350lib类的具体用法?Python ANC350lib怎么用?Python ANC350lib使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了ANC350lib类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: capMeasure

	def capMeasure(self, axis):
		'''
		determines the capacitance of the piezo addressed by axis
		'''
		self.status = ANC350lib.Int32(0)
		ANC350lib.positionerCapMeasure(self.handle,axis,ctypes.byref(self.status))
		return self.status.value
开发者ID:Laukei,项目名称:guilab,代码行数:7,代码来源:PyANC350.py

示例2: getStatus

	def getStatus(self, axis):
		'''
		determines the status of the selected axis. result: bit0 (moving), bit1 (stop detected), bit2 (sensor error), bit3 (sensor disconnected)
		'''
		self.status = ANC350lib.Int32(0)
		ANC350lib.positionerGetStatus(self.handle,axis,ctypes.byref(self.status))
		return self.status.value
开发者ID:Laukei,项目名称:guilab,代码行数:7,代码来源:PyANC350.py

示例3: getStepwidth

	def getStepwidth(self, axis):
		'''
		determines the step width. In case of standstill of the motor this is the calculated step width	resulting from amplitude setpoint, frequency, and motor parameters. In case of movement this is measured step width
		'''
		self.stepwdth = ANC350lib.Int32(0)
		ANC350lib.positionerGetStepwidth(self.handle,axis,ctypes.byref(self.stepwdth))
		return self.stepwdth.value
开发者ID:Laukei,项目名称:guilab,代码行数:7,代码来源:PyANC350.py

示例4: getRotCount

	def getRotCount(self, axis):
		'''
		determines actual number of rotations in case of rotary actuator
		'''
		self.rotcount = ANC350lib.Int32(0)
		ANC350lib.positionerGetRotCount(self.handle,axis,ctypes.byref(self.rotcount))
		return self.rotcount.value
开发者ID:Laukei,项目名称:guilab,代码行数:7,代码来源:PyANC350.py

示例5: getSpeed

	def getSpeed(self, axis):
		'''
		determines the actual speed. In case of standstill of this actor this is the calculated speed resulting	from amplitude setpoint, frequency, and motor parameters. In case of movement this is measured speed.
		'''
		self.spd = ANC350lib.Int32(0)
		ANC350lib.positionerGetSpeed(self.handle,axis,ctypes.byref(self.spd))
		return self.spd.value
开发者ID:Laukei,项目名称:guilab,代码行数:7,代码来源:PyANC350.py

示例6: getIntEnable

	def getIntEnable(self, axis):
		'''
		determines status of internal signal generation of addressed axis. only applicable for scanner/dither axes
		'''
		self.status = ctypes.c_bool(None)
		ANC350lib.positionerGetIntEnable(self.handle,axis,ctypes.byref(self.status))
		return self.status.value
开发者ID:Laukei,项目名称:guilab,代码行数:7,代码来源:PyANC350.py

示例7: getReferenceRotCount

	def getReferenceRotCount(self, axis):
		'''
		determines actual position of addressed axis
		'''
		self.rotcount = ANC350lib.Int32(0)
		ANC350lib.positionerGetReferenceRotCount(self.handle,axis,ctypes.byref(self.rotcount))
		return self.rotcount.value
开发者ID:Laukei,项目名称:guilab,代码行数:7,代码来源:PyANC350.py

示例8: getPosition

	def getPosition(self, axis):
		'''
		determines actual position of addressed axis
		'''
		self.pos = ANC350lib.Int32(0)
		ANC350lib.positionerGetPosition(self.handle,axis,ctypes.byref(self.pos))
		return self.pos.value
开发者ID:Laukei,项目名称:guilab,代码行数:7,代码来源:PyANC350.py

示例9: getFrequency

	def getFrequency(self, axis):
		'''
		determines the frequency in Hz
		'''
		self.freq = ANC350lib.Int32(0)
		ANC350lib.positionerGetFrequency(self.handle,axis,ctypes.byref(self.freq))
		return self.freq.value
开发者ID:Laukei,项目名称:guilab,代码行数:7,代码来源:PyANC350.py

示例10: getDcLevel

	def getDcLevel(self, axis):
		'''
		determines the status actual DC level in mV
		'''
		self.dclev = ANC350lib.Int32(0)
		ANC350lib.positionerGetDcLevel(self.handle,axis,ctypes.byref(self.dclev))
		return self.dclev.value
开发者ID:Laukei,项目名称:guilab,代码行数:7,代码来源:PyANC350.py

示例11: getBandwidthLimitEnable

	def getBandwidthLimitEnable(self, axis):
		'''
		determines status of bandwidth limiter of addressed axis. only applicable for scanner axes
		'''
		self.status = ctypes.c_bool(None)
		ANC350lib.positionerGetBandwidthLimitEnable(self.handle,axis,ctypes.byref(self.status))
		return self.status.value
开发者ID:Laukei,项目名称:guilab,代码行数:7,代码来源:PyANC350.py

示例12: getAmplitude

	def getAmplitude(self, axis):
		'''
		determines the actual amplitude. In case of standstill of the actor this is the amplitude setpoint. In case of movement the amplitude set by amplitude control is determined.
		'''
		self.status = ANC350lib.Int32(0)
		ANC350lib.positionerGetAmplitude(self.handle,axis,ctypes.byref(self.status))
		return self.status.value
开发者ID:Laukei,项目名称:guilab,代码行数:7,代码来源:PyANC350.py

示例13: getAcInEnable

	def getAcInEnable(self, axis):
		'''
		determines status of ac input of addressed axis. only applicable for dither axes
		'''
		self.status = ctypes.c_bool(None)
		ANC350lib.positionerGetAcInEnable(self.handle,axis,ctypes.byref(self.status))
		return self.status.value
开发者ID:Laukei,项目名称:guilab,代码行数:7,代码来源:PyANC350.py

示例14: getReference

	def getReference(self, axis):
		'''
		determines distance of reference mark to origin
		'''
		self.pos = ANC350lib.Int32(0)
		self.validity = ctypes.c_bool(None)
		ANC350lib.positionerGetReference(self.handle,axis,ctypes.byref(self.pos),ctypes.byref(self.validity))
		return self.pos.value, self.validity.value
开发者ID:Laukei,项目名称:guilab,代码行数:8,代码来源:PyANC350.py

示例15: connect

	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		
开发者ID:Laukei,项目名称:guilab,代码行数:11,代码来源:PyANC350.py


注:本文中的ANC350lib类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。