Script execution
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user