Skip to content

Connecting to SCPI multimeter by Generic SCPI in Python

Instrument Card

All SCPI Multimeters

SCPI multimeter

Device Specification: here

Manufacturer card: GENERIC SCPI

  • Headquarters:
  • Yearly Revenue (millions, USD):
  • Vendor Website: here

Demo: Record voltage over time with an Agilent 34401A multimeter

Connect to the SCPI multimeter in Python

PROTOCOLS > SCPI

To connect to a SCPI multimeter using Instrumentkit, you can use the following code:

import instrumentkit as ik
# Connect to the multimeter
multimeter = ik.SCPIMultimeter.open_tcpip("192.168.1.1")
# Set the measurement mode to voltage DC
multimeter.mode = multimeter.Mode.voltage_dc
# Perform a measurement
measurement = multimeter.measure()
# Print the measurement result
print(measurement)

This code connects to the multimeter using the open_tcpip method, sets the measurement mode to voltage DC using the mode property, performs a measurement using the measure method, and prints the measurement result.