Script execution
This commit is contained in:
@@ -86,8 +86,7 @@ def check_end_scan(record, scan):
|
||||
if record[3] != cur_cycle:
|
||||
cur_cycle = record[3]
|
||||
get_context().dataManager.splitScanData(scan)
|
||||
#for s in plt.getAllSeries():
|
||||
# s.clear()
|
||||
for s in plt.getAllSeries(): s.clear()
|
||||
for i in range (len(blms)):
|
||||
plt.getSeries(i).appendData(position, record[5 + i])
|
||||
|
||||
@@ -130,6 +129,7 @@ def do_scan(index):
|
||||
scanner.scan() #scanner.waitState(State.Busy, 60000) Not needed as stream filter will make the wait
|
||||
st.getChild("scanning").waitValue(1.0, 10000)
|
||||
mscan (st, [w_pos()] + st.getReadables(), -1, -1, take_initial = True, after_read = check_end_scan)
|
||||
|
||||
except:
|
||||
if not scanner.isReady():
|
||||
print "Aborting scan"
|
||||
|
||||
Reference in New Issue
Block a user