Script execution

This commit is contained in:
sfop
2016-07-06 15:21:06 +02:00
parent 9a8bff44f4
commit cddd0dbcd6

View File

@@ -12,21 +12,12 @@ import java.awt.Color as Color
LASER_SETTLING_TIME = 0.1
def laser_on():
print "Laser On"
#caput("SIN-TIMAST-TMA:Beam-Las-Delay-Sel", 0)
caput("SIN-TIMAST-TMA:Beam-Las-Delay-Sel", 0)
time.sleep(LASER_SETTLING_TIME)
def laser_off():
print "Laser Off"
#caput("SIN-TIMAST-TMA:Beam-Las-Delay-Sel", 1)
caput("SIN-TIMAST-TMA:Beam-Las-Delay-Sel", 1)
time.sleep(LASER_SETTLING_TIME)
def ccr(mag):
n = 1
while n > 0:
sleep(0.5)
n = caget(mag + ":I-COMP")
# Switch off magnets