ekpy.control.instruments.keithley2400 package¶
Submodules¶
ekpy.control.instruments.keithley2400.core module¶
-
ekpy.control.instruments.keithley2400.core.config_measure_current(k2400, nplc=1, current=0.01, auto_range=True)¶ Configures the measurement of current. :param k2400: Keithley 2400 :type k2400: pyvisa.instrument :param nplc: Number of power line cycles (NPLC) from 0.01 to 10 :type nplc: float or int :param current: Range. Upper limit of current in amps :type current: float :param auto_range: Enables auto_range if True, else uses the set current :type auto_range: bool
-
ekpy.control.instruments.keithley2400.core.config_measure_resistance(k2400, nplc=1, voltage=21.0, auto_range=True)¶ Configures the measurement of resistance. (Courtesy of pymeasure, see link below) :param k2400: Keithley 2400 :type k2400: pyvisa.instrument :param nplc: Number of power line cycles (NPLC) from 0.01 to 10 :type nplc: float or int :param voltage: Upper limit of voltage in Volts, from -210 V to 210 V :type voltage: float :param auto_range: Enables auto_range if True, else uses the set voltage :type auto_range: bool
-
ekpy.control.instruments.keithley2400.core.config_measure_voltage(k2400, nplc=1, voltage=21.0, auto_range=True)¶ Configures the measurement of voltage. (Courtesy of pymeasure, see link below) :param k2400: Keithley 2400 :type k2400: pyvisa.instrument :param nplc: Number of power line cycles (NPLC) from 0.01 to 10 :type nplc: float or int :param voltage: Range. Upper limit of voltage in Volts, from -210 V to 210 V :type voltage: float :param auto_range: Enables auto_range if True, else uses the set voltage :type auto_range: bool
-
ekpy.control.instruments.keithley2400.core.config_voltage_pulse(k2400, nplc: float = 0.01, amplitude: float = 5)¶ Configure for Voltage pulse. nplc=.01 gives ~1.5ms pulse nplc=.1 is ~7ms pulse
- Parameters
k2400 (pyvisa.instrument) – K2400
nplc (float) – (.01, 10) power line cycles to specify speed
amplitude (float) – Voltage amplitude in volts
Examples
k24 = pyvisa.ResourceManager().open_resource(<GBIP>) config_voltage_pulse(k24, amplitude=10) # configure 10V pulse enable_source(k24) # start the source read(k24) # apply the pulse
-
ekpy.control.instruments.keithley2400.core.disable_source(k2400)¶ Turn off source (either current or voltage)
- Parameters
k2400 (pyvisa.instrument) – K2400
-
ekpy.control.instruments.keithley2400.core.enable_source(k2400)¶ Turn on source (either current or voltage)
- Parameters
k2400 (pyvisa.instrument) – K2400
-
ekpy.control.instruments.keithley2400.core.read(k2400)¶ Do and Read measurement.
- Parameters
k2400 (pyvisa.instrument) – K2400
- Returns
reading (str)
-
ekpy.control.instruments.keithley2400.core.set_current_compliance(k2400, compliance: float = 0.01)¶ Set the Voltage compliance.
- Parameters
k2400 (pyvisa.instrument) – Keithley 2400
compliance (float) – Current compliance in Amps
-
ekpy.control.instruments.keithley2400.core.set_resistance_mode_manual(k2400)¶ Set the mode to manual resistance OHMs
- Parameters
k2400 (pyvisa.instrument) – Keithley 2400
-
ekpy.control.instruments.keithley2400.core.set_source_current_amplitude(k2400, amplitude: float = 0.0001)¶ Set the current source amplitude.
- Parameters
k2400 (pyvisa.instrument) – Keithley 2400
amplitude (float) – Current amplitude in Amps
-
ekpy.control.instruments.keithley2400.core.set_voltage_compliance(k2400, compliance: float = 2.1)¶ Set the Voltage compliance.
- Parameters
k2400 (pyvisa.instrument) – Keithley 2400
compliance (float) – Voltage compliance in Volts