From f8e258589416211b60b8c8944e4eb61792c1bd71 Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Thu, 2 Jun 2022 13:52:35 -0400 Subject: set safety current limit --- examples/eit_with_vcsel.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/examples/eit_with_vcsel.py b/examples/eit_with_vcsel.py index 77104f2..4783092 100644 --- a/examples/eit_with_vcsel.py +++ b/examples/eit_with_vcsel.py @@ -132,8 +132,12 @@ logger.info("Accessing hardware") rm = pyvisa.ResourceManager() instr=rm.open_resource('USB0::10893::4354::MY61001869::0::INSTR') Bfield = BfieldDriver(instr, device_nickname='.'.join([app_nickname, 'b_field_driver']), tsdb_ingester=tsdb_ingester) -ps = Bfield # alias # ps = KeysightE3612A(instr, device_nickname='.'.join([app_nickname, 'coil_driver']), tsdb_ingester=tsdb_ingester) +ps = Bfield # alias +# set safety current limit +ps.setChanIlimit(1, 0.1) # max current in Amps +ps.setChanIlimit(2, 0.1) # max current in Amps +ps.setChanIlimit(3, 0.1) # max current in Amps if platform.system() == 'Linux': rfgen_port='/dev/ttyUSB0' -- cgit v1.2.3