Script execution

This commit is contained in:
sfop
2017-04-03 11:02:03 +02:00
parent 6baabe4cd8
commit 74675ccc22

View File

@@ -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()