Browse Source

added code for egun activity and coupling indicator

Thomas Thümmler 1 year ago
parent
commit
f2d368f442
1 changed files with 16 additions and 0 deletions
  1. 16 0
      SDS_status_main.php

+ 16 - 0
SDS_status_main.php

@@ -1451,6 +1451,22 @@ else if ($value	== 0) $pic = $pic . "Closed";
 placePicWithLink(498, 501, $pic . ".png", 80, "status high-voltage grounding switch", $adeiChannel[31][1]);
 
 
+// ########## EGUN COUPLING SWITCH ##########
+$switch_status = $adeiValue[46][0];
+$laser_status = $adeiValue[47][0];
+$switch_name = "egunSwitch";
+$egun_name = "egun";
+
+if ($switch_status == 1) $switch_name = $switch_name . "HV";
+else $switch_name = $switch_name . "GND";
+placePicWithLink(415, 325, $switch_name . ".png", 90, "status egun coupling switch", $adeiChannel[46][0]);
+
+
+if ($laser_status > 2 ) $egun_name = $egun_name . "On";
+else $egun_name = $egun_name . "Off";
+placePicWithLink(431, 300, $egun_name . ".png", 30, "status egun operation", $adeiChannel[47][0]);
+
+
 
 // ########## MONITOR SPECTROMETR COUPLING STATUS ##########
 $hv_switch1101_mos = $adeiValue[35][0];