QCoDeS Example with R&S HMC 8043 Power SupplyΒΆ

[1]:
import qcodes as qc
import qcodes_contrib_drivers.drivers.RohdeSchwarz.HMC8043 as hmc8043

Create the instrument (in this case a HMC8043 connected with ethernet to the 10.0.1.1 address)

[2]:
ps = hmc8043.RohdeSchwarzHMC8043('ps_1', 'TCPIP0::10.0.1.1::inst0::INSTR')
Connected to: Rohde&Schwarz HMC8043 (serial:026373828, firmware:HW42000000,SW01.303) in 0.44s

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)

Channel(s) should be turned on, as well as the master on/off

[4]:
ps.ch1.state('ON')
ps.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.0
I1= 0.0
P1= 0.0

And finally turned off

[6]:
ps.ch1.state('OFF')
ps.state('OFF')
[ ]: