Startup
This commit is contained in:
@@ -1,22 +1,33 @@
|
||||
run("Devices/Elements")
|
||||
run("Devices/WireScanner")
|
||||
|
||||
prefix = "S30CB09-DWSC440"
|
||||
scanner = WireScanner(prefix, [-200, 200, -200, 200], 3, 200, True)
|
||||
#devices = [ "S30CB09-DWSC440"]
|
||||
#devices = ["S20SY03-DWSC090"]
|
||||
devices = ["S20SY03-DWSC090", "S30CB09-DWSC440"]
|
||||
|
||||
|
||||
scanners = []
|
||||
plots = []
|
||||
|
||||
|
||||
st = Stream("pulse_id", dispatcher)
|
||||
st.addScalar("m_pos", prefix + ":ENC_1_BS", 1, 0)
|
||||
for d in devices:
|
||||
st.addScalar(d + " enc", d + ":ENC_1_BS", 1, 0)
|
||||
plots.append(d + " enc")
|
||||
scanners.append(WireScanner(d, [-200, 200, -200, 200], 3, 200, True))
|
||||
st.initialize()
|
||||
|
||||
|
||||
setup_plotting(enable_plots = "m_pos",domain = "pulse_id")
|
||||
setup_plotting(enable_plots = plots,domain = "pulse_id")
|
||||
|
||||
scanner.set_selection(WireScanner.W1X)
|
||||
scanner.init(wait=False)
|
||||
for scanner in scanners:
|
||||
scanner.set_selection(WireScanner.W1X)
|
||||
scanner.init(wait=False)
|
||||
|
||||
bscan(st, 650)
|
||||
scanner.park(wait=False)
|
||||
|
||||
for scanner in scanners:
|
||||
scanner.park(wait=False)
|
||||
|
||||
bscan(st, 650, title = "Back")
|
||||
scanner.wait_in_selection()
|
||||
for scanner in scanners:
|
||||
scanner.wait_in_selection()
|
||||
Reference in New Issue
Block a user