Browse Source

moved PS temp for mode 5

Thomas Thuemmler 3 months ago
parent
commit
c0d5e487f1
1 changed files with 11 additions and 8 deletions
  1. 11 8
      SDS_status_main.php

+ 11 - 8
SDS_status_main.php

@@ -1330,11 +1330,17 @@ if ($PSmode == 5)
 if ($PSmode == 5) 
     { // only display if PS operation mode is HV
 
-	// mean of 4023, 4033, 4043
+        // mean of 4023, 4033, 4043
         $link = $adeiChannel[29][0] . "," . $adeiChannel[29][1] . "," . $adeiChannel[29][2];
-	$value = ($adeiValue[29][0] + $adeiValue[29][1] + $adeiValue[29][2])/3.0;
-	$color = "#000000";
-	if ($value < 4000) placeTextWithLink(440, 145,  "T<sub>PS</sub> = " . sprintf('%.1F &#176;C', $value), 120, 4, $color, "PS mean temperature of 4023..33..43", $link);
+        $value = ($adeiValue[29][0] + $adeiValue[29][1] + $adeiValue[29][2])/3.0;
+        $color = "#CCCCCC";
+        if ($value < 800)
+            {
+                $draw_x = 375;
+                $draw_y = 145;
+                placeBoxRight($draw_y, $draw_x,sprintf('%.1F &#176;C', $value), 65, 2, $color);
+                placePicWithLink($draw_y+2, $draw_x+5, "newTemperature.png", 15, "Average temperature of pre spectrometer vessel sensors 4023..33..43.", $link);
+            }
     }
 
 if ($PSmode != 5) 
@@ -1392,10 +1398,7 @@ if ($PSmode != 5)
 	if ($value < $min) $color = "#0026FF";
 	else if ($value > $max) $color = "#FF0000";
 	if ($value < 4000) placeTextWithLink(315, 110, sprintf('%.1F &#176;C', $value), 90, 4, $color, "PS mean temperature of 3912..13..14 side NEG port", $link);
-
-
-    }
-
+    
 
 	// ########## MS VESSEL TEMPERATURES ##########