Skip to content

Connecting to Rigol DP831 by Rigol in Python

Instrument Card

The Rigol DP831 features a relative large (8.9 cm / 3.5”) and easy to read TFT monochrome display. In addition to the normal digital displays for voltage, current, and power, these values can also be displayed as signal curves.

Device Specification: here

Manufacturer card: RIGOL

RIGOL Technologies, Inc. specializes in development and production of test and measuring equipment and is one of the fastest growing Chinese companies in this sphere. RIGOL’s line of products includes digital storage oscilloscopes, function/arbitrary waveform generators, digital multimeters, PC-based devices compatible with LXI standard etc.

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

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

Connect to the Rigol DP831 in Python

PROTOCOLS > SCPI

import qcodes as qc
from qcodes.instrument_drivers.rigol.DP831 import RigolDP831
# Connect to the power supply
power_supply = RigolDP831('power_supply', 'TCPIP0::192.168.1.1::INSTR')
# Print the power supply's IDN
print(power_supply.IDN())
# Set the voltage of channel 1 to 3.0 V
power_supply.ch1.voltage.set(3.0)
# Set the current limit of channel 2 to 1.5 A
power_supply.ch2.current_limit.set(1.5)
# Enable output on channel 3
power_supply.ch3.output_enable.set(True)
# Disable output on channel 1
power_supply.ch1.output_enable.set(False)
# Close the connection to the power supply
power_supply.close()

Note: Replace 'TCPIP0::192.168.1.1::INSTR' with the actual IP address or VISA resource string of your Rigol DP831 power supply.