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.
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: Measure a solar panel IV curve with a Keithley 2400
Connect to the Keysight B2962A in Python
Read our guide for turning Python scripts into Flojoy nodes.
PROTOCOLS > SCPI
from qcodes import Stationfrom qcodes.instrument_drivers.Keysight.Keysight_B2962A import KeysightB2962A
# Create a station to hold the instrumentstation = Station()
# Connect to the instrumentinstrument = KeysightB2962A('power_supply', 'TCPIP0::192.168.1.1::inst0::INSTR')
# Add the instrument to the stationstation.add_component(instrument)
# Print the instrument IDNprint(instrument.get_idn())
# Set the voltage and current for channel 1instrument.ch1.source_voltage(1.0)instrument.ch1.source_current(0.1)
# Enable channel 1instrument.ch1.enable('on')
# Measure the voltage and current for channel 1voltage = instrument.ch1.voltage()current = instrument.ch1.current()
# Print the measured valuesprint(f"Voltage: {voltage} V")print(f"Current: {current} A")
# Disconnect from the instrumentinstrument.close()