From d08836261d808aa8a7efc419cf2adb729906f290 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rton=20Gunyh=C3=B3?= Date: Fri, 23 Feb 2024 13:21:06 +0200 Subject: [PATCH] Add appropriate lower limit for voltage compliance Writing an SCPI command to set a voltage compliance value that is below the minimum accepted by the device (0.2 mV) will cause the value to be silently ignored, and the previous compliance level will stay. Without this modification, it is possible to set the compliance to 0.1 mV but accidentally pass 20 V, since that is the default voltage compliance when the device is booted. --- src/qcodes_contrib_drivers/drivers/Tektronix/Keithley_6430.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qcodes_contrib_drivers/drivers/Tektronix/Keithley_6430.py b/src/qcodes_contrib_drivers/drivers/Tektronix/Keithley_6430.py index ac87b1ae7..239c4b2d1 100644 --- a/src/qcodes_contrib_drivers/drivers/Tektronix/Keithley_6430.py +++ b/src/qcodes_contrib_drivers/drivers/Tektronix/Keithley_6430.py @@ -46,7 +46,7 @@ def __init__(self, name: str, get_parser=float, set_cmd='SENS:VOLT:PROT {}', get_cmd='SENS:VOLT:PROT?', - vals=Numbers(1e-12, 210) + vals=Numbers(0.2e-3, 210), ) self.add_parameter('source_current_compliance_tripped', get_cmd='SENS:CURR:PROT:TRIP?',