Script execution
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user