def __init__(self, address, name='', defaults=False, reset=False): # The instrument needs an delay otherwise he will timeout PyVisaInstrument.__init__(self, address, name, delay=0.01) self._instrument = AmetekInstrument(self._instrument) # Setting the termination characters self._instrument.read_termination = self._instrument.LF # Channels x_channel = _Ametek7270LockInAmplifierChannel(self._instrument, 'X') self.__setitem__('x', x_channel) y_channel = _Ametek7270LockInAmplifierChannel(self._instrument, 'Y') self.__setitem__('y', y_channel) mag_channel = _Ametek7270LockInAmplifierChannel( self._instrument, 'MAG') self.__setitem__('mag', mag_channel) pha_channel = _Ametek7270LockInAmplifierChannel( self._instrument, 'PHA') self.__setitem__('phase', pha_channel) osc_channel = _Ametek7270LockInAmplifierOscillator(self._instrument) self.__setitem__('oscillator', osc_channel)
def __init__(self, address, name='', defaults=False, reset=False, **pyvisa): PyVisaInstrument.__init__(self, address, name, **pyvisa) # Setting the termination characters term_chars = self._instrument.CR + self._instrument.LF self._instrument.read_termination = term_chars # Channels x_channel = _Egg7260LockInAmplifierChannel(self._instrument, 'X') self.__setitem__('x', x_channel) y_channel = _Egg7260LockInAmplifierChannel(self._instrument, 'Y') self.__setitem__('y', y_channel) mag_channel = _Egg7260LockInAmplifierChannel(self._instrument, 'MAG') self.__setitem__('mag', mag_channel) pha_channel = _Egg7260LockInAmplifierChannel(self._instrument, 'PHA') self.__setitem__('phase', pha_channel) osc_channel = _Egg7260LockInAmplifierOscillator(self._instrument) self.__setitem__('oscillator', osc_channel) # Subsystems self.auto = _Egg7260LockInAmplifierAutoSubsystem(self._instrument) self.signal = _Egg7260LockInAmplifierSignalSubsystem(self._instrument) self.rear_panel = _Egg7260LockInAmplifierRearPanelSubsystem(self._instrument) if reset: self.reset() elif defaults: self.defaults()
def __init__(self, rm, address, name='', defaults=False, reset=False): PyVisaInstrument.__init__(self, rm, address, name) # Setting the termination characters term_chars = self._instrument.CR + self._instrument.LF self._instrument.read_termination = term_chars # Channels x_channel = _Egg7260LockInAmplifierChannel(self._instrument, 'X') self.__setitem__('x', x_channel) y_channel = _Egg7260LockInAmplifierChannel(self._instrument, 'Y') self.__setitem__('y', y_channel) mag_channel = _Egg7260LockInAmplifierChannel(self._instrument, 'MAG') self.__setitem__('mag', mag_channel) pha_channel = _Egg7260LockInAmplifierChannel(self._instrument, 'PHA') self.__setitem__('phase', pha_channel) osc_channel = _Egg7260LockInAmplifierOscillator(self._instrument) self.__setitem__('oscillator', osc_channel) # Subsystems self.auto = _Egg7260LockInAmplifierAutoSubsystem(self._instrument) self.signal = _Egg7260LockInAmplifierSignalSubsystem(self._instrument) self.rear_panel = _Egg7260LockInAmplifierRearPanelSubsystem(self._instrument) if reset: self.reset() elif defaults: self.defaults()
def __init__(self, resource_manager, address, name='', defaults=False, reset=False): PyVisaInstrument.__init__(self, resource_manager, address, name, baud_rate=115200) term = self._instrument.LF + self._instrument.CR self._instrument.read_termination = term # Channels self.__setitem__('1a', _Ad5791DacChannel(self._instrument, '1 A')) self.__setitem__('1b', _Ad5791DacChannel(self._instrument, '1 B')) self.__setitem__('2a', _Ad5791DacChannel(self._instrument, '2 A')) self.__setitem__('2b', _Ad5791DacChannel(self._instrument, '2 B')) self.__setitem__('3a', _Ad5791DacChannel(self._instrument, '3 A')) self.__setitem__('3b', _Ad5791DacChannel(self._instrument, '3 B')) self.__setitem__('4a', _Ad5791DacChannel(self._instrument, '4 A')) self.__setitem__('4b', _Ad5791DacChannel(self._instrument, '4 B')) self.__setitem__('5a', _Ad5791DacChannel(self._instrument, '5 A')) self.__setitem__('5b', _Ad5791DacChannel(self._instrument, '5 B')) self.__setitem__('6a', _Ad5791DacChannel(self._instrument, '6 A')) self.__setitem__('6b', _Ad5791DacChannel(self._instrument, '6 B')) if reset: self.reset() if defaults: self.defaults()
def __init__(self, address, name='', defaults=False, reset=False): # The instrument needs an delay otherwise he will timeout PyVisaInstrument.__init__(self, address, name, delay=0.01) # Channels x_channel = _Egg5302LockInAmplifierChannel(self._instrument, 'X') self.__setitem__('x', x_channel) y_channel = _Egg5302LockInAmplifierChannel(self._instrument, 'Y') self.__setitem__('y', y_channel) mag_channel = _Egg5302LockInAmplifierChannel(self._instrument, 'MAG') self.__setitem__('mag', mag_channel) pha_channel = _Egg5302LockInAmplifierChannel(self._instrument, 'PHA') self.__setitem__('phase', pha_channel) osc_channel = _Egg5302LockInAmplifierOscillator(self._instrument) self.__setitem__('oscillator', osc_channel) # Subsystems self.auto = _Egg5302LockInAmplifierAutoSubsystem(self._instrument) self.signal = _Egg5302LockInAmplifierSignalSubsystem(self._instrument) self.rear_panel = _Egg5302LockInAmplifierRearPanelSubsystem(self._instrument) if reset: self.reset() elif defaults: self.defaults()
def __init__(self, rm, address, name='', defaults=False, reset=False): PyVisaInstrument.__init__(self, rm, address, name) # Setting the termination characters #self._instrument.read_termination = self._instrument.LF # Subsystems self.display = _Keithley2000MultimeterSubsystemDisplay( self._instrument) self.format = _Keithley2000MultimeterSubsystemFormat(self._instrument) self.trigger = _Keithley2000MultimeterSubsystemTrigger( self._instrument) self.buffer = _Keithley2000MultimeterSubsystemBuffer(self._instrument) self.system = _Keithley2000MultimeterSubsystemSystem(self._instrument) # Channels volt_dc = _Keithley2000MultimeterChannelVoltageDC(self._instrument) self.__setitem__('voltage_dc', volt_dc) curr_dc = _Keithley2000MultimeterChannelCurrentDC(self._instrument) self.__setitem__('current_dc', curr_dc) res = _Keithley2000MultimeterChannelResistance(self._instrument) self.__setitem__('resistance', res) if reset: self.reset() if defaults: self.defaults()
def __init__(self, rm, address, name='', defaults=False, reset=False): PyVisaInstrument.__init__(self, rm, address, name) # Setting the termination characters term_chars = self._instrument.CR self._instrument.read_termination = term_chars #Setting the input term char at the instrument and for the driver self._instrument.write('DD 13') # Channels x_channel = _Egg5210LockInAmplifierChannel(self._instrument, 'X') self.__setitem__('x', x_channel) y_channel = _Egg5210LockInAmplifierChannel(self._instrument, 'Y') self.__setitem__('y', y_channel) mag_channel = _Egg5210LockInAmplifierChannel(self._instrument, 'MAG') self.__setitem__('mag', mag_channel) pha_channel = _Egg5210LockInAmplifierChannel(self._instrument, 'PHA') self.__setitem__('phase', pha_channel) osc_channel = _Egg5210LockInAmplifierOscillator(self._instrument) self.__setitem__('oscillator', osc_channel) # Subsystems self.auto = _Egg5210LockInAmplifierAutoSubsystem(self._instrument) self.signal = _Egg5210LockInAmplifierSignalSubsystem(self._instrument) self.rear_panel = _Egg5210LockInAmplifierRearPanelSubsystem(self._instrument) if reset: self.reset() elif defaults: self.defaults()
def __init__(self, rm, address, name='', defaults=False, reset=False): PyVisaInstrument.__init__(self, rm, address, name) # Setting the termination characters #self._instrument.read_termination = self._instrument.LF # Subsystems self.display = _Keithley2000MultimeterSubsystemDisplay(self._instrument) self.format = _Keithley2000MultimeterSubsystemFormat(self._instrument) self.trigger = _Keithley2000MultimeterSubsystemTrigger(self._instrument) self.buffer = _Keithley2000MultimeterSubsystemBuffer(self._instrument) self.system = _Keithley2000MultimeterSubsystemSystem(self._instrument) # Channels volt_dc = _Keithley2000MultimeterChannelVoltageDC(self._instrument) self.__setitem__('voltage_dc', volt_dc) curr_dc = _Keithley2000MultimeterChannelCurrentDC(self._instrument) self.__setitem__('current_dc', curr_dc) res = _Keithley2000MultimeterChannelResistance(self._instrument) self.__setitem__('resistance', res) if reset: self.reset() if defaults: self.defaults()
def __init__(self, resource_manager, address, name='', defaults=False, reset=False): PyVisaInstrument.__init__(self, resource_manager, address, name, baud_rate=115200) self.__setitem__('X', PiezoControlMDT693AChannel(self._instrument, 'X')) self.__setitem__('Y', PiezoControlMDT693AChannel(self._instrument, 'Y')) self.__setitem__('Z', PiezoControlMDT693AChannel(self._instrument, 'Z')) # self.__setitem__('Master', PiezoControlMDT693AChannel(self._instrument, 'A')) """ This is the master channel, which will write all of the XYZ
def __init__(self, resource_manager, address, name=''): PyVisaInstrument.__init__(self, resource_manager, address, name) term = self._instrument.LF + self._instrument.CR self._instrument.read_termination = term self._instrument.timeout = 100 self.__setitem__('percent', _PercentChannel(self._instrument)) self.__setitem__('position', _PositionChannel(self._instrument)) self.__setitem__('pressure', _PressureChannel(self._instrument))
def __init__(self, resource_manager, address, name=''): PyVisaInstrument.__init__(self, resource_manager, address, name) term = self._instr.LF + self._instr.CR self._instr.read_termination = term self._instr.write_termination = self._instr.CR self.__setitem__('valve', ValveChannel(self._instr)) self.__setitem__('pressure1', He3Channel(self._instr, 'pressure1')) self.__setitem__('pressure2', He3Channel(self._instr, 'pressure2')) self.__setitem__('pressure3', He3Channel(self._instr, 'pressure3'))
def __init__(self, rm, address, name='', defaults=True): PyVisaInstrument.__init__(self, rm, address, name) self._instrument = OxfordInstrument(self._instrument) self._instrument.read_termination = self._instrument.CR # Set the communication protocol to normal self._instr.write('Q0') # Channels self.__setitem__('bfield', _OxfordPS120FieldChannel(self._instrument)) if defaults is True: self.defaults()
def __init__(self, address, name='', reset=True, defaults=True, isobus=6): PyVisaInstrument.__init__(self, address, name) self._isobus = isobus self._instrument = OxfordInstrument(self._instrument, isobus = self._isobus) self._instrument.timeout = 200 self._instrument.read_termination = '\r' self._instrument.write_termination = '\r' self._instrument.write('C3') # Channels self.__setitem__('helium', _QxfordILMChannel(self._instrument)) if defaults is True: self.defaults()
def __init__(self, address, name='', defaults=False, reset=False): PyVisaInstrument.__init__(self, address, name) # Channels self.__setitem__('port1', _IoTechDac488HrChannel(self._instrument, 1)) self.__setitem__('port2', _IoTechDac488HrChannel(self._instrument, 2)) self.__setitem__('port3', _IoTechDac488HrChannel(self._instrument, 3)) self.__setitem__('port4', _IoTechDac488HrChannel(self._instrument, 4)) if defaults: self.defaults() if reset: self.reset()
def __init__(self, address, name='', reset=True, defaults=True, isobus=1): PyVisaInstrument.__init__(self, address, name) self._isobus = isobus self._instrument = OxfordInstrument(self._instrument, isobus = self._isobus) self._instrument.timeout = 200 self._instrument.read_termination = '\r' self._instrument.write_termination = '\r' self._instrument.write('C1') # Channels self.__setitem__('temperature', _QxfordITCChannel(self._instrument)) self.__setitem__('needle_valve', _OxfordITCValve(self._instrument)) if defaults is True: self.defaults()
def __init__(self, rm, address, name='', reset=True, defaults=True): PyVisaInstrument.__init__(self, rm, address, name) self._instrument = OxfordInstrument(self._instrument) self._instrument.timeout = 5 self._instrument.read_termination = self._instrument.CR self._instrument.write('C1') # Set the communication protocol to normal #self._instr.write('Q0') # Channels self.__setitem__('bfield', _OxfordIPSFieldChannel(self._instrument)) if defaults is True: self.defaults()
def __init__(self, address, name='', reset=True, defaults=True, isobus=1): PyVisaInstrument.__init__(self, address, name) self._isobus = isobus self._instrument = OxfordInstrument(self._instrument, isobus=self._isobus) self._instrument.timeout = 200 self._instrument.read_termination = '\r' self._instrument.write_termination = '\r' self._instrument.write('C1') # Channels self.__setitem__('temperature', _QxfordITCChannel(self._instrument)) self.__setitem__('needle_valve', _OxfordITCValve(self._instrument)) if defaults is True: self.defaults()
def __init__(self, address, name='', reset=False, defaults=True, **pyvisa): PyVisaInstrument.__init__(self, address, name, **pyvisa) self._instrument = OxfordInstrument(self._instrument, delay=0.02) self._instrument.read_termination = self._instrument.CR self._instrument.timeout = 1 # Set the communication protocol to normal self._instrument.write('Q0') # Channels self.__setitem__('bfield', _OxfordPS120FieldChannel(self._instrument)) if defaults is True: self.defaults() if reset is True: self.reset()
def __init__(self, rm, address, name='', defaults=False, reset=False): PyVisaInstrument.__init__(self, rm, address, name) # Setting the termination characters self._instrument.read_termination = self._instrument.LF # Channels self.__setitem__('source_voltage_dc', _Keithley2400SourceMeterChannelSourceVoltageDc(self._instrument)) self.__setitem__('source_current_dc', _Keithley2400SourceMeterChannelSourceCurrentDc(self._instrument)) self.__setitem__('measure_voltage_dc', _Keithley2400SourceMeterChannelMeasureVoltage(self._instrument)) self.__setitem__('measure_current_dc', _Keithley2400SourceMeterChannelMeasureCurrent(self._instrument)) #self.__setitem__('measure_resistance', _Keithley2400SourceMeterChannelMeasureResistance(self._instrument)) if defaults: self.defaults() if reset: self.reset()
def __init__(self, rm, address, name=''): PyVisaInstrument.__init__(self, rm, address, name) self._instrument.read_termination = self._instrument.LF self._instrument.write_termination = self._instrument.LF #self._instrument.timeout = 4000 self._instrument.write('*CLS') self._instrument.write('OUTX0') self._instrument.write('ALRM 0') self._instrument.write('AOVL 0') self.__setitem__('spectrum1', Spectrum(self._instrument, 0)) self.__setitem__('spectrum2', Spectrum(self._instrument, 1)) self.__setitem__('both', Spectrum(self._instrument, 2)) self.__setitem__('transferfunction', TransferFunction(self._instrument)) self.__setitem__('sweptsine1', SweptSine(self._instrument, 0)) self.__setitem__('sweptsine2', SweptSine(self._instrument, 1)) self.__setitem__('sinesource1', Source(self._instrument, 0)) self.__setitem__('sinesource2', Source(self._instrument, 1))
def __init__(self, resource_manager, address, name='', defaults=False, reset=False): PyVisaInstrument.__init__(self, resource_manager, address, name, baud_rate=115200) # self.echo_mode() self.__setitem__('X', PiezoControlMDT693AChannel(self._instrument, 'X')) self.__setitem__('Y', PiezoControlMDT693AChannel(self._instrument, 'Y')) self.__setitem__('Z', PiezoControlMDT693AChannel(self._instrument, 'Z')) # self.__setitem__('Master', PiezoControlMDT693AChannel(self._instrument, 'A')) """ This is the master channel, which will write all of the XYZ
def __init__(self, address, name='', defaults=False, reset=False): # The instrument needs an delay otherwise he will timeout PyVisaInstrument.__init__(self, address, name, delay=0.01) self._instrument = AmetekInstrument(self._instrument) # Setting the termination characters self._instrument.read_termination = self._instrument.LF # Channels x_channel = _Ametek7270LockInAmplifierChannel(self._instrument, 'X') self.__setitem__('x', x_channel) y_channel = _Ametek7270LockInAmplifierChannel(self._instrument, 'Y') self.__setitem__('y', y_channel) mag_channel = _Ametek7270LockInAmplifierChannel(self._instrument, 'MAG') self.__setitem__('mag', mag_channel) pha_channel = _Ametek7270LockInAmplifierChannel(self._instrument, 'PHA') self.__setitem__('phase', pha_channel) osc_channel = _Ametek7270LockInAmplifierOscillator(self._instrument) self.__setitem__('oscillator', osc_channel)