diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/eit_with_vcsel.py | 6 |
1 files changed, 5 insertions, 1 deletions
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' |