Script execution

This commit is contained in:
x10daop
2017-01-19 10:29:40 +01:00
parent 98c8ae3647
commit 5de192fce9

View File

@@ -7,7 +7,6 @@ caput("X10DA-ES-SCALER.CONT", 0)
caput("X10DA-ES1:START-CSMPL", 1)
caput("X10DA-ES1:TOTAL-CYCLES", 5)
caput("X10DA-ES1:SMPL-BTN", 1)
bragg = CrlogicPositioner("bragg", "X10DA-OP-MO3:ROX", None);
@@ -24,7 +23,7 @@ class ECalc(Readable):
class ECalc(Readable):
def read(self):
return 12.39842 / ( crystal.take() * math.sin( math.radians(bragg.take())) )
e_calc = ECalc()
e_calc = ECalc()
sensors = [crystal, i0, i1, i2, ref, abs_calc, e_calc]