From 74675ccc22891fa644e6765def77fd7568d54edf Mon Sep 17 00:00:00 2001 From: sfop Date: Mon, 3 Apr 2017 11:02:03 +0200 Subject: [PATCH] Script execution --- script/local.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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