Script execution

This commit is contained in:
gac-x10da
2022-08-30 11:59:33 +02:00
parent a8746dd15a
commit 60e38f409d

View File

@@ -2,7 +2,7 @@ EEdge=9.
start=EEdge-0.3
step=0.01
sleepTime=3.
sleepTime=0.5
for i in range(0,5):
caput("X10DA-OP1-MO1:BraggEAO",start+step*i)
time.sleep(sleepTime)
@@ -23,6 +23,7 @@ print ("BeforeCalibration", EnergyGonio2,EnergyAbsolut2)
NewOffset=OldOffset-BraggGonio2+BraggGonio1
caput("X10DA-OP1-MO1:ROTX.OFF", NewOffset)
time.sleep(sleepTime)
EnergyGonio=caget("X10DA-OP1-MO1:BraggEAO.VAL")
EnergyAbsolut=caget("X10DA-OP1-MO1:ENC-ROTXEnergy.VAL")
print ("AfterCalibration", EnergyGonio,EnergyAbsolut)