36 lines
758 B
Python
36 lines
758 B
Python
run("Devices/Elements")
|
|
run("Devices/WireScanner")
|
|
|
|
#devices = [ "S30CB09-DWSC440"]
|
|
#devices = ["S20SY03-DWSC090"]
|
|
devices = ["S30CB09-DWSC440", "S20SY03-DWSC090"]
|
|
|
|
|
|
scanners = []
|
|
plots = []
|
|
|
|
|
|
st = Stream("pulse_id", dispatcher)
|
|
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 = plots,domain = "pulse_id")
|
|
|
|
for scanner in scanners:
|
|
scanner.set_selection(WireScanner.W1X)
|
|
scanner.init(wait=False)
|
|
|
|
bscan(st, 650)
|
|
|
|
scanners[0].wait_in_selection()
|
|
|
|
for scanner in scanners:
|
|
scanner.park(wait=False)
|
|
|
|
bscan(st, 650, title = "Back")
|
|
|
|
scanners[0].wait_in_selection() |