devices.keithley:Keithley2000

Class for controlling Keithley 2000 multimeter.

Usage

Source

devices.keithley:Keithley2000(
    interface,
    **kwargs,
)

Provides methods to configure and control the Keithley 2000 multimeter for various measurements including voltage, 2-wire resistance, and 4-wire resistance.

Attributes

config_params: dict

Dictionary mapping configuration parameter names to SCPI commands.

triggered: bool
Flag indicating if a reading has been triggered.

Methods

Name Description
__init__() Initialize the Keithley 2000 multimeter.
configure2WireOhm() Configure the Keithley 2000 to detect 2-wire resistance.
configure4WireOhm() Configure the Keithley 2000 to detect 4-wire resistance.
configureVolt() Configure the Keithley 2000 to detect voltages.
getFunction() Get the current measurement function of the device.
getReading() Get the latest reading from the device.
triggerReading() Trigger a measurement reading on the device.

__init__()

Initialize the Keithley 2000 multimeter.

Usage

Source

__init__(
    interface,
    **kwargs,
)

Parameters

interface: str

VISA resource name or interface identifier.

**kwargs: dict
Additional keyword arguments to pass to the VisaDevice constructor. Defaults are set for write_termination, read_termination, and timeout.

configure2WireOhm()

Configure the Keithley 2000 to detect 2-wire resistance.

Usage

Source

configure2WireOhm(
    digits=None,
    count=None,
    window=None,
    NPLC=None,
    dFil=None,
    resistance_range=None,
    rangeAuto=None,
    trigBus=None,
    repeatingFilter=None,
    reset=False,
)

Parameters

digits: int = None

Number of digits to display (4-8).

count: int = None

Filter count for the digital filter.

window: float = None

Filter window for the digital filter.

NPLC: int = None

Number of power line cycles to integrate over.

dFil: bool = None

If True, turn on the digital filter. If False, window and filter count are ignored.

resistance_range: float = None

Range of the resistance detection. Selected by the instrument to include the value.

rangeAuto: bool = None

Automatic detection of the measurement range. Takes additional time during measurements.

trigBus: bool = None

Sets trigger source to BUS if True.

repeatingFilter: bool = None

If True set the filter to repeating, if False to moving.

reset: bool = False
If True, the device is reset prior to configuration. Defaults to False.

configure4WireOhm()

Configure the Keithley 2000 to detect 4-wire resistance.

Usage

Source

configure4WireOhm(
    digits=None,
    count=None,
    window=None,
    NPLC=None,
    dFil=None,
    resistance_range=None,
    rangeAuto=None,
    trigBus=None,
    repeatingFilter=None,
    reset=False,
)

Parameters

digits: int = None

Number of digits to display (4-8).

count: int = None

Filter count for the digital filter.

window: float = None

Filter window for the digital filter.

NPLC: int = None

Number of power line cycles to integrate over.

dFil: bool = None

If True, turn on the digital filter. If False, window and filter count are ignored.

resistance_range: float = None

Range of the resistance detection. Selected by the instrument to include the value of range.

rangeAuto: bool = None

Automatic detection of the measurement range. Takes additional time during measurements.

trigBus: bool = None

Sets trigger source to BUS if True.

repeatingFilter: bool = None

If True set the filter to repeating, if False to moving.

reset: bool = False
If True, the device is reset prior to configuration. Defaults to False.

configureVolt()

Configure the Keithley 2000 to detect voltages.

Usage

Source

configureVolt(
    digits=None,
    count=None,
    window=None,
    NPLC=None,
    dFil=None,
    voltage_range=None,
    rangeAuto=None,
    trigBus=None,
    repeatingFilter=None,
    reset=False,
)

Parameters

digits: int = None

Number of digits to display (4-8).

count: int = None

Filter count for the digital filter.

window: float = None

Filter window for the digital filter.

NPLC: int = None

Number of power line cycles to integrate over.

dFil: bool = None

If True, turn on the digital filter. If False, window and filter count are ignored.

voltage_range: float = None

Range of the voltage detection. Selected by the instrument to include the value.

rangeAuto: bool = None

Automatic detection of the measurement range. Takes additional time during measurements.

trigBus: bool = None

Sets trigger source to BUS if True.

repeatingFilter: bool = None

If True set the filter to repeating, if False to moving.

reset: bool = False
If True, the device is reset prior to configuration. Defaults to False.

getFunction()

Get the current measurement function of the device.

Usage

Source

getFunction()

Returns

str
The current measurement function.

getReading()

Get the latest reading from the device.

Usage

Source

getReading()

Returns

float
The measurement value as a float.

Notes

Only returns a value if a reading has been triggered using the triggerReading method. After retrieving the reading, the triggered flag is set to False.


triggerReading()

Trigger a measurement reading on the device.

Usage

Source

triggerReading()

Sends a trigger command to the device and sets the triggered flag to True.