Script execution

This commit is contained in:
voulot_d
2017-02-14 11:33:46 +01:00
parent 6f31414097
commit ecd174e198

View File

@@ -28,13 +28,13 @@ phase.initialize()
#camtool.startReceiver()
#x = camtool.getValue("x_com")
#dx = camtool.getValue("x_rms")
x = phase.getValue()
dx = (phase.getValue() - 85) * (phase.getValue() - 85)
xb = phase.getValue()
dxb = (phase.getValue() - 85) * (phase.getValue() - 85)
try:
xb = create_averager(x, nb, 0.100)
dxb = create_averager(dx, nb, 0.100)
# xb = create_averager(x, nb, 0.100)
# dxb = create_averager(dx, nb, 0.100)
r = lscan(phase, [xb, dxb], start, stop, step , latency=lat, after_read = after)
rf_phase = r.getPositions(0)
E = [val.mean/1000.0/disp*energy0 for val in r.getReadable(0)]