Browse Source

updated HV scale factor for KNM3

Thomas Thümmler 3 years ago
parent
commit
047accece1
1 changed files with 7 additions and 4 deletions
  1. 7 4
      SDS_status_main.php

+ 7 - 4
SDS_status_main.php

@@ -614,13 +614,16 @@ if (($MSmode == 5) or ($MSmode == 4))
 	//$factor_m_rel_error = 0.02/$factor_m;
 	//$offset = -4.1e-6;
 	//$gain = 1.00000136;
-	$factor_m = 1972.449;
-	$factor_m_rel_error = 0.02/$factor_m;
-	$offset = 2.58e-06;
+        
+	$factor_m = 1972.462;
+	$factor_m_rel_error = 2.4e-6; // including calibration, gain and offset error
+	$offset = 2.56e-6;
+	$offset_error = 6.1e-7;
 	$gain = 0.999999826;
+	$gain_error = 4.5e-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; }
+	if ($voltage_error < 1) { $voltage_error = 1; }        
 	
 	// voltage display K65
 	$link = $K65_link;