Skip to content

Connecting to Keysight B2962A by Keysight in Python

Instrument Card

The Keysight B2962A source / measure unit (SMU) is a 6.5-digit low noise power source that provides a power supply and source solution that meets the difficult measurement challenges researchers, designers, and developers face working on advanced components, circuits, and materials.

Keysight B2962A

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: Measure a solar panel IV curve with a Keithley 2400

Connect to the Keysight B2962A in Python

PROTOCOLS > SCPI

from qcodes import Station
from qcodes.instrument_drivers.Keysight.Keysight_B2962A import KeysightB2962A
# Create a station to hold the instrument
station = Station()
# Connect to the instrument
instrument = KeysightB2962A('power_supply', 'TCPIP0::192.168.1.1::inst0::INSTR')
# Add the instrument to the station
station.add_component(instrument)
# Print the instrument IDN
print(instrument.get_idn())
# Set the voltage and current for channel 1
instrument.ch1.source_voltage(1.0)
instrument.ch1.source_current(0.1)
# Enable channel 1
instrument.ch1.enable('on')
# Measure the voltage and current for channel 1
voltage = instrument.ch1.voltage()
current = instrument.ch1.current()
# Print the measured values
print(f"Voltage: {voltage} V")
print(f"Current: {current} A")
# Disconnect from the instrument
instrument.close()