Skip to content

Connecting to Keithley 2306 by Keithley in Python

Instrument Card

The dual channel Battery/Charger Simulator was designed specifically for development and test applications of portable, battery-operated products, such as cellular and cordless telephones, mobile radios, and pagers. This precision DC power supply product has ultrafast transient response so it can have output characteristics identical to actual batteries. This supply employs a unique variable output resistance so the voltage output can emulate a battery’s response. It provides stable voltage outputs, even when a device-under-test (DUT) makes the rapid transition from the standby (low current) state to the RF transmission (high current) state. In addition, they can monitor DUT power consumption by measuring both DC currents and pulse load currents. The battery-simulator channel can be programmed to operate like a discharged rechargeable battery, sinking current from a separate charger.

Keithley 2306

Device Specification: here

Manufacturer card: KEITHLEY

KEITHLEY

Keithley Instruments is a measurement and instrument company headquartered in Solon, Ohio, that develops, manufactures, markets, and sells data acquisition products, as well as complete systems for high-volume production and assembly testing.

  • Headquarters: Cleveland, Ohio, United States
  • Yearly Revenue (millions, USD): 110.6
  • Vendor Website: here

Demo: Measure a solar panel IV curve with a Keithley 2400

Connect to the Keithley 2306 in Python

PROTOCOLS > SCPI

from pymeasure.adapters import VISAAdapter
from pymeasure.instruments.keithley import Keithley2306
# Create a VISA adapter for communication
adapter = VISAAdapter("TCPIP::192.168.1.1::INSTR") # Replace with your instrument's IP address
# Connect to the Keithley 2306 Power Supply
power_supply = Keithley2306(adapter)
# Enable both channels
power_supply.both_channels_enabled = True
# Set the voltage and current limits for channel 1
power_supply.ch(1).source_voltage = 5.0 # Set the voltage to 5V
power_supply.ch(1).source_current_limit = 1.0 # Set the current limit to 1A
# Enable channel 1
power_supply.ch(1).enabled = True
# Measure the voltage and current on channel 1
voltage = power_supply.ch(1).measured_voltage
current = power_supply.ch(1).measured_current
print(f"Voltage: {voltage} V")
print(f"Current: {current} A")
# Disconnect from the power supply
power_supply.disconnect()

Make sure to replace "TCPIP::192.168.1.1::INSTR" with the appropriate VISA address for your Keithley 2306 Power Supply.