Teledyne LeCroy T3PS30051P DC power supply

This example adapts the single-output DC supply workflow to QCoDeS. The T3PS30051P supports 0-30 V and a 0-5 A current limit.

This was tested on a unit running:

  • Software Version: 2.1.1.8

  • Hardware Version: V1.0

This version requires the Output On/Off command of the form “OUTP CH1,ON”, “OUTP CH1,OFF”. Note other software versions may be slightly different

You need a connected instrument and a working VISA backend. Replace the resource address below with your instrument’s address. Check the wiring and choose limits appropriate for the connected device before enabling output. Construction does not reset or disable an already enabled output. Closing the connection does not disable it either.

The example keeps the output disabled unless you explicitly uncomment the output-enable command.

This model does not respond to *IDN?. The driver supplies the known vendor and model locally, with no serial number or firmware information, so initialization and station snapshots do not send identification queries. Queries wait one second before reading a response. Close any existing connection from another notebook or application before connecting here.

[15]:
from qcodes_contrib_drivers.drivers.Teledyne import TeledyneT3PS30051P
from qcodes.station import Station
[23]:
resource_name = "USB0::0xF4EC::0x1410::T0103C21190153::0::INSTR"
pwr = TeledyneT3PS30051P("pwr", resource_name)
station = Station(pwr)
Connected to: Teledyne LeCroy T3PS30051P (serial:None, firmware:None) in 0.02s

Configure voltage and current

Turn the output off before changing the setpoints. QCoDeS parameters validate values before sending commands. Unlike the original standalone driver, getters return numeric values instead of just printing them.

[24]:
pwr.output(False)
pwr.voltage(5.0)
pwr.current(0.5)
print(f"Voltage setpoint: {pwr.voltage()} V")
print(f"Current limit: {pwr.current()} A")
Voltage setpoint: 5.0 V
Current limit: 0.5 A

Inspect status and control output

output reads status bit 4, while mode reports constant-voltage (CV) or constant-current (CC) operation. status returns the complete status register as an integer.

Uncomment the output-enable command only after checking that the voltage and current limit are appropriate.

[25]:
print(f"Status register: {pwr.status():#06x}")
print(f"Output enabled: {pwr.output()}")
print(f"Regulation mode: {pwr.mode()}")


Status register: 0x0000
Output enabled: False
Regulation mode: CV

Enable the Output

[26]:
pwr.output(True)

Read the actual output

Measurements are separate from programmed setpoints. A station snapshot records both settings and measurements.

[27]:
print(f"Measured voltage: {pwr.measured_voltage()} V")
print(f"Measured current: {pwr.measured_current()} A")
print(f"Measured power: {pwr.measured_power()} W")
snapshot = station.snapshot(update="All")
Measured voltage: 5.002 V
Measured current: 0.0 A
Measured power: 0.0 W

Disable output and close

Run this cleanup cell even if a preceding cell raises an error. For unattended scripts, put output shutdown and connection cleanup in a try/finally block.

[28]:
try:
    pwr.output(False)
finally:
    pwr.close()