Script execution

This commit is contained in:
sfop
2016-06-06 15:34:41 +02:00
parent d57894c183
commit 1b24c4c653

View File

@@ -3,20 +3,18 @@ I_read = Channel("SINEG01-MSOL130:I-READ")
bpm_x = ai1 # Channel("SINEG01-DBPM340:X1")
bpm_y = ai2 # Channel("SINEG01-DBPM340:Y1")
#def ccr(mag):
# n = 1
# while n > 0:
# sleep(0.2)
# n = caget(Channel(mag + ":I-COMP"))
def ccr(mag):
n = 1
while n > 0:
sleep(0.2)
n = caget(Channel(mag + ":I-COMP"))
I1 = 2.0
I2 = 15.0
dI = 1.0
mag = [ "SINEG01-MCRX120",
"SINEG01-MCRY120",
"SINEG01-MQUA140",
"SINEG01-MQUA150"]
"SINEG01-MCRY120"]
for m in mag:
ch = (m + ":I-SET")
caput(ch, 0.0)