From 20f0b273d9a9f5a494a03f468116aeffec819366 Mon Sep 17 00:00:00 2001 From: sfop Date: Mon, 12 Sep 2016 15:55:55 +0200 Subject: [PATCH] Script execution --- script/local.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/script/local.py b/script/local.py index 73f83ea..7899f1b 100755 --- a/script/local.py +++ b/script/local.py @@ -22,7 +22,9 @@ def laser_off(): caput("SIN-TIMAST-TMA:Beam-Las-Delay-Sel", 1) caput("SIN-TIMAST-TMA:Beam-Apply-Cmd.PROC", 1) time.sleep(LASER_SETTLING_TIME) - + +def is_laser_on(): + caget ("SIN-TIMAST-TMA:Beam-Las-Delay-Sel",'d') == 0 # Switch off magnets def ccr(magnet):