Skip to content

Connecting to Keysight 34980A by Keysight in Python

Instrument Card

The Keysight 34980A Multifunction Switch/Measure unit is designed for R&D and manufacturing test engineers who are working in design verification, automated test or data acquisition and are either looking to upgrade their existing systems or are in need of a new, cost-effective alternative

Keysight 34980A

Device Specification: here

Manufacturer card: KEYSIGHT

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 34980A in Python

PROTOCOLS > SCPI

Here is a Python script that uses Qcodes to connect to a Keysight 34980A DAQ board:

import qcodes as qc
from qcodes.instrument_drivers.Keysight.Keysight_34980A import Keysight34980A
# Create an instance of the instrument
daq = Keysight34980A('daq', 'TCPIP0::192.168.1.1::INSTR')
# Connect to the instrument
daq.connect()
# Perform operations with the instrument
daq.reset()
status = daq.get_status()
error = daq.get_error()
# Disconnect from the instrument
daq.disconnect()

This script imports the necessary modules and creates an instance of the Keysight34980A instrument with the name ‘daq’ and the specified address. It then connects to the instrument using the connect() method.

After connecting, the script performs some operations with the instrument, such as resetting it, getting the status and error messages. Finally, it disconnects from the instrument using the disconnect() method.