Connecting to Keysight E4980A by Keysight in Python
Instrument Card
The E4980A precision LCR meter provides the best combination of accuracy, speed, and versatility for a wide range of component measurements.
Device Specification: here
Manufacturer card: KEYSIGHT
Keysight Technologies, or Keysight, is an American company that manufactures electronics test and measurement equipment and software
- Headquarters: USA
- Yearly Revenue (millions, USD): 5420
- Vendor Website: here
Demo: Record voltage over time with an Agilent 34401A multimeter
Connect to the Keysight E4980A in Python
Read our guide for turning Python scripts into Flojoy nodes.
PROTOCOLS > SCPI
Here is a Python script that uses Qcodes to connect to a Keysight E4980A Multimeter:
from qcodes.instrument_drivers.Keysight.Keysight_E4980A import KeysightE4980A
# Create an instance of the instrumentmeter = KeysightE4980A("meter", "TCPIP0::192.168.1.1::INSTR")
# Connect to the instrumentmeter.connect()
# Perform measurementsimpedance = meter.measure_impedance.get()print("Impedance:", impedance)
# Disconnect from the instrumentmeter.disconnect()
In this script, we import the KeysightE4980A
class from the qcodes.instrument_drivers.Keysight.Keysight_E4980A
module. We then create an instance of the instrument by providing a name and the instrument’s address (in this case, a TCP/IP address). We connect to the instrument using the connect()
method.
We can then perform measurements using the instrument’s parameters and methods. In this example, we use the measure_impedance
parameter to get the impedance measurement. Finally, we disconnect from the instrument using the disconnect()
method.