This page was generated from docs/examples/driver_examples/Qcodes example with Rigol DP832.ipynb. Interactive online version: Binder badge.

QCoDeS Example with Rigol DP832 Power Supply

[1]:
from qcodes.instrument_drivers.rigol import RigolDP832

Create the instrument (in this case a Rigol DP832 connected with ethernet to the 10.0.0.102 address)

[2]:
ps = RigolDP832('ps', 'TCPIP0::10.0.0.102::inst0::INSTR')
Connected to: RIGOL TECHNOLOGIES DP832 (serial:DP8xxxxxxxxxx, firmware:00.01.14) in 0.12s

You can set voltage and/or current to any channel

[3]:
ps.ch1.set_voltage(1)
ps.ch1.set_current(0.2)
ps.ch2.set_voltage(10)
ps.ch3.set_current(2)

Channel(s) should be turned on

[4]:
ps.ch1.state('on')

Voltage, current and power can be measured

[5]:
print('V1=', ps.ch1.voltage())
print('I1=', ps.ch1.current())
print('P1=', ps.ch1.power())
V1= 1.0072
I1= 0.0005
P1= 0.001

DP832 supports Over- Voltage (OVP) and Current (OCP) protections

[6]:
ps.ch1.ovp_value(1.2)
ps.ch1.ocp_value(0.05)
ps.ch1.ovp_state('on')
ps.ch1.ocp_state('on')

Working mode can be probed 9Voltage/Current regulatde, or unregulated)

[7]:
ps.ch1.mode()
[7]:
'ConstantVoltage'
[ ]: