Files
sf-op/script/test/TestWS.py
root 7f88d445af
2019-08-08 10:10:28 +02:00

19 lines
665 B
Python

run("Devices/Elements")
run("Devices/WireScanner")
#ws_prefix = "SINDI01-DWSC090"
ws_prefix = "S10DI01-DWSC010"
plt = plot(None, title = "Wire Scan Calibration")[0]
ws_wire = WireScanner.WireX1
range_start = -900
range_end = 100
n_shot = 200
ws_blm = get_wire_scanners_blms(ws_prefix )[0]
#Calculate speed
x_min, x_max = range_start, range_end
#rr = get_repetition_rate()
#ws_speed = (x_max- x_min)*rr/n_shot
for xx in range(10):
__args = [ ws_prefix , ws_wire, [x_min, x_max, x_min, x_max], 1, n_shot, [], [ws_blm], 1, plt, False,1,0]
ret = run("Diagnostics/WireScan", __args)