#!/usr/bin/env python # coding: utf-8 # # QCoDeS Example with Rigol DP832 Power Supply # In[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) # In[2]: ps = RigolDP832("ps", "TCPIP0::10.0.0.102::inst0::INSTR") # You can set voltage and/or current to any channel # In[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 # In[4]: ps.ch1.state("on") # Voltage, current and power can be measured # In[5]: print("V1=", ps.ch1.voltage()) print("I1=", ps.ch1.current()) print("P1=", ps.ch1.power()) # DP832 supports Over- Voltage (OVP) and Current (OCP) protections # In[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) # In[7]: ps.ch1.mode() # In[ ]: