Changeset 17031
- Timestamp:
- 08/20/13 08:07:02 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/scripts/Main.js
r17028 r17031 196 196 service_feedback.onchange = function(evt) 197 197 { 198 if (this.cnt && evt.counter>this.cnt+12)199 return;200 201 198 if (!evt.data) 202 199 return; … … 204 201 var Unom = evt.obj['U_nom']; 205 202 var Uov = evt.obj['U_ov']; 206 if (!U _ov)203 if (!Uov) 207 204 return; 208 205 … … 221 218 avg /= 320; 222 219 220 if (this.ok==undefined) 221 return; 222 223 223 this.ok = cnt==0; 224 224 225 console.out(" DeltaUov=%.3f [N(>0.033V)=%d]".$( this.voltageStep, cnt));225 console.out(" DeltaUov=%.3f [N(>0.033V)=%d]".$(avg, cnt)); 226 226 } 227 227 … … 248 248 dim.log("Switching voltage off."); 249 249 250 this.ok = undefined; 251 250 252 // Supress the possibility that the bias control is 251 253 // ramping and will reject the command to switch the … … 258 260 } 259 261 260 dim.wait("BIAS_CONTROL", "VoltageOff", 5000);262 dim.wait("BIAS_CONTROL", "VoltageOff", 60000); 261 263 262 264 // FEEDBACK stays in CurrentCtrl when Voltage is off but output enabled … … 297 299 { 298 300 dim.log("Switching voltage on."); 301 299 302 dim.send("FEEDBACK/START", 1.1); 300 303 dim.wait("FEEDBACK", "InProgress", 45000); … … 302 305 303 306 // Wait until voltage on 304 dim.wait("BIAS_CONTROL", "VoltageOn", 5000);307 dim.wait("BIAS_CONTROL", "VoltageOn", 60000); 305 308 306 309 if (isOff) … … 315 318 function func() 316 319 { 317 if (irq || this.ok )320 if (irq || this.ok==true) 318 321 return true; 319 322 } … … 327 330 else 328 331 dim.log("Voltage stable within limits"); 332 333 this.ok = undefined; 329 334 } 330 335 … … 445 450 "FEEDBACK/CALIBRATION_R8", 446 451 "FEEDBACK/CALIBRATION_STEPS", 447 "FEEDBACK/REFERENCE", 452 /* "FEEDBACK/REFERENCE",*/ 448 453 "FSC_CONTROL/CURRENT", 449 454 "FSC_CONTROL/HUMIDITY", … … 739 744 // It is not ideal that we allow the drive to be on during day time, but 740 745 // otherwise it is difficult to allow e.g. the STARTUP at the beginning of the night 741 var power_states = sun.isUp || system_on===false? [ "DriveOff", "SystemOn" ] : [ "SystemOn" ];742 var drive_states = sun.isUp || system_on===false? undefined : [ "Armed", "Tracking", "OnTrack" ];746 var power_states = sun.isUp || !system_on ? [ "DriveOff", "SystemOn" ] : [ "SystemOn" ]; 747 var drive_states = sun.isUp || !system_on ? undefined : [ "Armed", "Tracking", "OnTrack" ]; 743 748 744 749 // A scheduled task was found, lets check if all servers are
Note:
See TracChangeset
for help on using the changeset viewer.