Connecting to Keysight E36313A by Keysight in Python
Instrument Card
The triple output, 160 W, E36313A provides small, compact size for bench use; low output ripple and noise; built-in measurements and basic programmable features with USB and LAN, and optional GPIB interfaces.
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 E36313A in Python
Read our guide for turning Python scripts into Flojoy nodes.
PROTOCOLS > SCPI
To connect to a Keysight E36313A Power Supply using Qcodes, you can use the following Python script:
from qcodes.instrument_drivers.Keysight.E36313A import E36313A
# Create an instance of the E36313A instrumentpower_supply = E36313A('power_supply', 'TCPIP0::192.168.1.1::INSTR')
# Connect to the instrumentpower_supply.connect()
# Get the identification information of the instrumentidn = power_supply.get_idn()print('Instrument ID:', idn)
# Set the voltage and current for channel 1power_supply.ch1.source_voltage(5) # Set the voltage to 5Vpower_supply.ch1.source_current(0.5) # Set the current to 0.5A
# Enable channel 1power_supply.ch1.enable('on')
# Read the voltage and current from channel 1voltage = power_supply.ch1.voltage()current = power_supply.ch1.current()print('Channel 1 Voltage:', voltage)print('Channel 1 Current:', current)
# Disable channel 1power_supply.ch1.enable('off')
# Disconnect from the instrumentpower_supply.disconnect()
This script creates an instance of the E36313A
instrument, connects to it using the specified address (replace 'TCPIP0::192.168.1.1::INSTR'
with the actual address of your instrument), retrieves the identification information, sets the voltage and current for channel 1, enables channel 1, reads the voltage and current from channel 1, disables channel 1, and finally disconnects from the instrument.