Script execution
This commit is contained in:
@@ -34,15 +34,15 @@ camtool.start("SINBD01-DSCR010")
|
||||
#x = Channel("SINEG01-DSCR190:X-SIM", type = 'd', alias='SCR-X')
|
||||
#dx = Channel("SINEG01-DSCR190:DX-SIM", type = 'd', alias='SCR-DX')
|
||||
x = CamtoolValue("gr_x_fit_mean")
|
||||
set_device_alias(x, "gr_x_fit_mean")
|
||||
dx = CamtoolValue("gr_x_fit_standard_deviation")
|
||||
set_device_alias(dx, "gr_x_fit_standard_deviation")
|
||||
#x = CamtoolValue("gr_x_com_egu")
|
||||
#dx = CamtoolValue("gr_x_rms_egu")
|
||||
|
||||
try:
|
||||
xb = create_averager(x, nb, 0.100)
|
||||
set_device_alias(xb, "gr_x_fit_mean")
|
||||
dxb = create_averager(dx, nb, 0.100)
|
||||
set_device_alias(dxb, "gr_x_fit_standard_deviation")
|
||||
r = lscan(phase, [xb, dxb], start, stop, step , latency=lat)
|
||||
rf_phase = r.getPositions(0)
|
||||
E = [energy0 * (1 + val.mean / 1e6 / disp) for val in r.getReadable(0)]
|
||||
|
||||
Reference in New Issue
Block a user