Startup
This commit is contained in:
22
script/test/WireScanEncoderTest.py
Normal file
22
script/test/WireScanEncoderTest.py
Normal file
@@ -0,0 +1,22 @@
|
||||
run("Devices/Elements")
|
||||
run("Devices/WireScanner")
|
||||
|
||||
prefix = "S30CB09-DWSC440"
|
||||
scanner = WireScanner(prefix, [-200, 200, -200, 200], 3, 200, True)
|
||||
|
||||
|
||||
st = Stream("pulse_id", dispatcher)
|
||||
st.addScalar("m_pos", prefix + ":ENC_1_BS", 1, 0)
|
||||
st.initialize()
|
||||
|
||||
|
||||
setup_plotting(enable_plots = "m_pos",domain = "pulse_id")
|
||||
|
||||
scanner.set_selection(WireScanner.W1X)
|
||||
scanner.init(wait=False)
|
||||
|
||||
bscan(st, 650)
|
||||
scanner.park(wait=False)
|
||||
|
||||
bscan(st, 650, title = "Back")
|
||||
scanner.wait_in_selection()
|
||||
Reference in New Issue
Block a user