This commit is contained in:
sfop
2017-04-27 10:18:20 +02:00
parent 6fc1738645
commit 3c97b19cc8
7 changed files with 701 additions and 307 deletions
+11
View File
@@ -0,0 +1,11 @@
st = Stream("ICTstream", dispatcher)
q = st.addScalar("Charge", "SINEG01-DICT215:B1_CHARGE", 1, 0)
st.initialize()
st.start()
try:
qb = create_averager(q, 5, 0.100)
r = tscan((qb), 10, 1.0)
finally:
st.close()
+25
View File
@@ -0,0 +1,25 @@
prefix = "S30CB09-DWSC440"
prefix = "SINDI01-DWSC090"
channels = [("m_pos", prefix+":ENC_1_BS"),
#("cur_cycle", prefix+":CURR_CYCL"),
# ("scanning", prefix+":SCANNING")
]
class w_pos(Readable):
def read(self):
return st.getChildren()[0].take()
st = Stream("pulse_id", dispatcher)
for c in channels:
st.addScalar(c[0], c[1], 10, 0)
st.initialize()
st.start()
try:
mscan (st, [w_pos()] + st.getReadables(), 10)
finally:
st.close()