New ScreenPanel

This commit is contained in:
2018-01-19 10:56:53 +01:00
commit ae4d621609
580 changed files with 46598 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
def bsget(channel):
"""Reads an values a bsread stream, using the default provider.
Args:
channel(str or list of str): channel name(s)
Returns:
PV value
"""
channels = to_list(channel)
st = Stream(None, None)
try:
for c in channels:
st.addScalar(c, c, 1,0)
st.initialize()
st.start()
st.waitValueNot(None, 5000)
if type(channel) is str:
return st.getValue(channel)
return st.values
finally:
st.close()
bsget("Int32Scalar")