aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2021-06-24 23:44:55 -0400
committerEugeniy E. Mikhailov <evgmik@gmail.com>2021-06-24 23:44:55 -0400
commit1a53f59076b4d8ff4c22a65875c58fc5525e648f (patch)
tree4dd3fc25288e2d287031bb56f87b5ec4f51ae175
parent07190b7d0172968519a3d432cf1b4b7b118fee08 (diff)
downloadqolab-1a53f59076b4d8ff4c22a65875c58fc5525e648f.tar.gz
qolab-1a53f59076b4d8ff4c22a65875c58fc5525e648f.zip
added fallback settings for RG generator
-rw-r--r--eitControl.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/eitControl.py b/eitControl.py
index 19d5e19..0036f52 100644
--- a/eitControl.py
+++ b/eitControl.py
@@ -113,8 +113,8 @@ class Experiment:
rf=rfGen.rfGenLMX2487(port='COM5', speed=115200, timeout=1)
self.hardware['rfGen'] = rf
- fCent = 6.83468e9
- fSpan = 100e3
+ fCent = self.config['RF'].getfloat('central_frequency', fallback=6.83468e9)
+ fSpan = self.config['RF'].getfloat('frequency_span', fallback=100e3)
self.rfGenFunc = RampGen(start=0, stop=0, sweeper = self.sweeper)
self.rfGenFunc.setCenter(fCent)
self.rfGenFunc.setSpan(fSpan)