def initialize(self, config): super(SilverPack17, self).initialize(config) self.connect_to_labrad() self.serial_server = self.cxn[self.serial_servername] serial = SerialProxy(self.serial_server) ser = serial.Serial(self.serial_address) ser.timeout = self.serial_timeout self.ser = ser # set current command = '/1m30h10R\r' self.ser.write(command) response = self.ser.readline() self.serial_server.write(self.serial_address, ) response = self.serial_server.readline(self.serial_address) # set velocity and acceleration command = '/1V1000L500R\r' self.ser.write(command) response = self.ser.readline() # set step resolution command = '/1j256o1500R\r' self.ser.write(command) response = self.ser.readline()
def initialize(self, config): super(Sprout, self).initialize(config) self.connect_to_labrad() self.serial_server = self.cxn[self.serial_servername] serial = SerialProxy(self.serial_server) ser = serial.Serial(self.serial_address) ser.timeout = self.serial_timeout ser.baudrate = self.serial_baudrate self.ser = ser
def initialize(self, config): super(AOSenseECDL, self).initialize(config) self.connect_to_labrad() self.serial_server = self.cxn[self.serial_servername] serial = SerialProxy(self.serial_server) ser = serial.Serial(self.serial_address) ser.timeout = self.serial_timeout ser.baudrate = self.serial_baudrate self.ser = ser self.get_parameters()
def initialize(self, config): super(DIM3000, self).initialize(config) self.connect_to_labrad() self.serial_server = self.cxn[self._serial_servername] serial = SerialProxy(self.serial_server) self._ser = serial.Serial(self._serial_port) self._ser.timeout = self._serial_timeout self._ser.baudrate = self._serial_baudrate self.do_update_parameters()
def initialize(self, config): super(PSH6018, self).initialize(config) self.connect_to_labrad() self.serial_server = self.cxn[self.serial_servername] serial = SerialProxy(self.serial_server) ser = serial.Serial(self.serial_address) ser.timeout = self.serial_timeout ser.readlines() self.ser = ser self.get_parameters()
def initialize(self, config): super(AD9854, self).initialize(config) self.connect_to_labrad() self.serial_server = self.cxn[self.serial_servername] serial = SerialProxy(self.serial_server) ser = serial.Serial(self.serial_address) ser.timeout = self.serial_timeout ser.baudrate = self.serial_baudrate self.ser = ser time.sleep(0.2) reactor.callInThread(self.delayed_call, 5, self.set_frequency, self.default_frequency) reactor.callInThread(self.delayed_call, 5.1, self.set_frequency, self.default_frequency)
def initialize(self, config): super(AD9959, self).initialize(config) self.connect_to_labrad() self.serial_server = self.cxn[self.serial_servername] serial = SerialProxy(self.serial_server) ser = serial.Serial(self.serial_address) ser.timeout = self.serial_timeout ser.baudrate = self.serial_baudrate self.ser = ser self.set_frequency(self.default_frequency) self.set_amplitude(self.default_amplitude)