aboutsummaryrefslogtreecommitdiff
path: root/examples/eit_with_vcsel.py
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2022-06-02 13:52:35 -0400
committerEugeniy E. Mikhailov <evgmik@gmail.com>2022-06-02 13:53:19 -0400
commitf8e258589416211b60b8c8944e4eb61792c1bd71 (patch)
treeff020181e7258a1f547b483f4402b943596c05ca /examples/eit_with_vcsel.py
parentd702bb3329c7a9132ca5b2da3ea4813144ec85c2 (diff)
downloadqolab-f8e258589416211b60b8c8944e4eb61792c1bd71.tar.gz
qolab-f8e258589416211b60b8c8944e4eb61792c1bd71.zip
set safety current limit
Diffstat (limited to 'examples/eit_with_vcsel.py')
-rw-r--r--examples/eit_with_vcsel.py6
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'