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