Source code for qcodes_contrib_drivers.drivers.Thorlabs.KDC101
# -*- coding: utf-8 -*-"""QCoDes-Driver for Thorlab KDC101 K-Cube Brushed DC Servo Motor Controllerhttps://www.thorlabs.com/thorproduct.cfm?partnumber=KDC101Authors: Julien Barrier, <julien@julienbarrier.eu>"""importloggingfromtypingimportOptionalfrom.private.CCimport_Thorlabs_CClog=logging.getLogger(__name__)
[docs]classThorlabs_KDC101(_Thorlabs_CC):"""Instrument driver for the Thorlabs KDC101 servo motor controller Args: name: Instrument name. serial_number: Serial number of the device. dll_path: Path to the kinesis dll for the instrument to use. dll_dir: Directory in which the kinesis dll are stored. simulation: Enables the simulation manager. polling: Polling rate in ms. home: Sets the device to home state. """def__init__(self,name:str,serial_number:str,dll_path:Optional[str]=None,dll_dir:Optional[str]=None,simulation:bool=False,polling:int=200,home:bool=False,**kwargs):ifdll_path:self._dll_path=dll_pathelse:self._dll_path='Thorlabs.MotionControl.KCube.DCServo.dll'self._dll_dir:Optional[str]=dll_dirifdll_direlseNonesuper().__init__(name,serial_number,self._dll_path,self._dll_dir,simulation,polling,home,**kwargs)