|
@@ -602,21 +602,23 @@ if (($MSmode == 5) or ($MSmode == 4))
|
|
|
$hv_switch1103_k35 = $adeiValue[35][2];
|
|
|
if ($hv_switch1103_k35 == 1) $K35_text = "K35 @ MoS Voltage";
|
|
|
else if ($hv_switch1103_k35 == 0) $K35_text = "K35 @ MS Voltage";
|
|
|
- $K35_text = "testing";
|
|
|
+ $K35_text = "K65 @ MS Tank + IE";
|
|
|
|
|
|
// voltage monitoring readout K35
|
|
|
$color = "#000000";
|
|
|
- $factor_m = 1972.462;
|
|
|
- $factor_m_rel_error = 2.4e-6;
|
|
|
- $offset = 2.56e-06;
|
|
|
- $gain = 0.999999826;
|
|
|
+ $factor_m = 1818.108;
|
|
|
+ $factor_m_rel_error = 1.0e-6;
|
|
|
+ $offset = 3.67e-6;
|
|
|
+ $offset_error = 1.6e-7;
|
|
|
+ $gain = 0.99999956;
|
|
|
+ $gain_error = 6.5e-8;
|
|
|
$value = ($K35_value - $offset) * $gain * $factor_m;
|
|
|
$voltage_error = abs($value * $factor_m_rel_error * 1e3); // in mV
|
|
|
if ($voltage_error*100 < 1) { $voltage_error = 0.2; }
|
|
|
|
|
|
// voltage display K35
|
|
|
$link = $K35_link;
|
|
|
- $text = "K35 divider readout 436-REU-0-0201-0001, precision voltage value";
|
|
|
+ $text = "K35 divider readout 436-REU-0-0201-0001, but connected to K65 in KNM6 at 436-REU-0-0101-0001, precision voltage value";
|
|
|
|
|
|
if ($K35_RunFlag > 0)
|
|
|
{
|
|
@@ -640,18 +642,18 @@ if (($MSmode == 5) or ($MSmode == 4))
|
|
|
//$gain = 1.00000136;
|
|
|
|
|
|
$factor_m = 1972.462;
|
|
|
- $factor_m_rel_error = 2.4e-6; // including calibration, gain and offset error
|
|
|
- $offset = 3.38e-6;
|
|
|
- $offset_error = 3.6e-7;
|
|
|
- $gain = 0.999999633;
|
|
|
- $gain_error = 8.4e-8;
|
|
|
+ $factor_m_rel_error = 1.0e-6; // including calibration, gain and offset error
|
|
|
+ $offset = 3.67e-6;
|
|
|
+ $offset_error = 3.5e-7;
|
|
|
+ $gain = 0.999999277;
|
|
|
+ $gain_error = 9.9e-8;
|
|
|
$value = ($K65_value - $offset) * $gain * $factor_m;
|
|
|
$voltage_error = abs($value * $factor_m_rel_error * 1e3); // in mV
|
|
|
if ($voltage_error < 1) { $voltage_error = 1; }
|
|
|
|
|
|
// voltage display K65
|
|
|
$link = $K65_link;
|
|
|
- $text = "K65 divider channel 436-REU-0-0301-0001, precision voltage value, KNM5 calibration, in 2021 used for K35 at 436-REU-0-0201-0001";
|
|
|
+ $text = "K65 divider channel 436-REU-0-0301-0001, precision voltage value, KNM5 calibration, in 2021 connected to K35 at 436-REU-0-0201-0001";
|
|
|
//$text = "K65 divider channel 436-REU-0-0301-0001, precision voltage value, KNM5 calibration, in 2021 used for 436-REU-0-0201-0001 as long as K35 is down.";
|
|
|
|
|
|
if ($K65_RunFlag > 0)
|
|
@@ -711,7 +713,7 @@ if (($MSmode == 5) or ($MSmode == 4))
|
|
|
// voltage display K35
|
|
|
$link = $Kal1_link;
|
|
|
// $text = "JRL divider at Kal1 monitoring input 436-REU-0-0501-0001, precision voltage value";
|
|
|
- $text = "DVM at IE Common, precision voltage value";
|
|
|
+ $text = "DVM at IE Common, 436-REU-0-0301-001, precision voltage value";
|
|
|
|
|
|
if ($Kal1_RunFlag > 0)
|
|
|
{
|
|
@@ -729,8 +731,10 @@ if (($MSmode == 5) or ($MSmode == 4))
|
|
|
$hv_switch1103_k35 = $adeiValue[35][2];
|
|
|
$R_K65 = 54.5e6;
|
|
|
$R_K35 = 58.65e6;
|
|
|
- $R_ges = (1-$hv_switch1103_k35)*$R_K35+(1-$hv_switch1102_k65)*$R_K65;
|
|
|
+ if ($hv_switch1103_k35+$hv_switch1102_k65 = 2) $R_ges = 33.057e6; // manual entry of R_ges with K65 and K35 connected
|
|
|
+ else $R_ges = (1-$hv_switch1103_k35)*$R_K35+(1-$hv_switch1102_k65)*$R_K65; // choose just one divider
|
|
|
|
|
|
+
|
|
|
$I_noPR = $U_ist / $R_ges * 1000.0;
|
|
|
$I_PR = $I_ist - $I_noPR;
|
|
|
$APR_on = abs($adeiValue[10][29]);
|