diff --git a/script/local.py b/script/local.py index ec013e0..bbb9de5 100755 --- a/script/local.py +++ b/script/local.py @@ -337,3 +337,16 @@ def check_camtool(): raise Exception("Error starting camtool process") time.sleep(0.1) +def bsget(channel): + st = Stream(None, dispatcher) + try: + st.addScalar(channel, channel, 10, 0) + st.initialize() + st.start(); + st.waitValueNot(None, 10000) + return st.getValue(channel) + finally: + st.close() + + + \ No newline at end of file