Changeset 17031


Ignore:
Timestamp:
08/20/13 08:07:02 (11 years ago)
Author:
tbretz
Message:
Could not take single-pe runs when drive system was locked; FEEDBACK/REFERENCE removed; fixed the bugs in the new voltage on/off procedure
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/scripts/Main.js

    r17028 r17031  
    196196service_feedback.onchange = function(evt)
    197197{
    198     if (this.cnt && evt.counter>this.cnt+12)
    199         return;
    200 
    201198    if (!evt.data)
    202199        return;
     
    204201    var Unom = evt.obj['U_nom'];
    205202    var Uov  = evt.obj['U_ov'];
    206     if (!U_ov)
     203    if (!Uov)
    207204        return;
    208205
     
    221218    avg /= 320;
    222219
     220    if (this.ok==undefined)
     221        return;
     222
    223223    this.ok = cnt==0;
    224224
    225     console.out("  DeltaUov=%.3f [N(>0.033V)=%d]".$(this.voltageStep, cnt));
     225    console.out("  DeltaUov=%.3f [N(>0.033V)=%d]".$(avg, cnt));
    226226}
    227227
     
    248248        dim.log("Switching voltage off.");
    249249
     250        this.ok = undefined;
     251
    250252        // Supress the possibility that the bias control is
    251253        // ramping and will reject the command to switch the
     
    258260    }
    259261
    260     dim.wait("BIAS_CONTROL", "VoltageOff", 5000);
     262    dim.wait("BIAS_CONTROL", "VoltageOff", 60000);
    261263
    262264    // FEEDBACK stays in CurrentCtrl when Voltage is off but output enabled
     
    297299    {
    298300        dim.log("Switching voltage on.");
     301
    299302        dim.send("FEEDBACK/START", 1.1);
    300303        dim.wait("FEEDBACK", "InProgress", 45000);
     
    302305
    303306    // Wait until voltage on
    304     dim.wait("BIAS_CONTROL", "VoltageOn", 5000);
     307    dim.wait("BIAS_CONTROL", "VoltageOn", 60000);
    305308
    306309    if (isOff)
     
    315318    function func()
    316319    {
    317         if (irq || this.ok)
     320        if (irq || this.ok==true)
    318321            return true;
    319322    }
     
    327330    else
    328331        dim.log("Voltage stable within limits");
     332
     333    this.ok = undefined;
    329334}
    330335
     
    445450         "FEEDBACK/CALIBRATION_R8",
    446451         "FEEDBACK/CALIBRATION_STEPS",
    447          "FEEDBACK/REFERENCE",
     452/*         "FEEDBACK/REFERENCE",*/
    448453         "FSC_CONTROL/CURRENT",
    449454         "FSC_CONTROL/HUMIDITY",
     
    739744    // It is not ideal that we allow the drive to be on during day time, but
    740745    // 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" ];
    743748
    744749    // A scheduled task was found, lets check if all servers are
Note: See TracChangeset for help on using the changeset viewer.