Changeset 15466 for trunk/FACT++


Ignore:
Timestamp:
05/01/13 10:49:10 (12 years ago)
Author:
tbretz
Message:
Made sure that if we do a re-connect during configure all servers are in the right state before we try to reconnect; fixed an undefined access to 'task' (the object was missing)
File:
1 edited

Legend:

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

    r15454 r15466  
    201201    console.out("   ...waiting for 1s");
    202202    v8.sleep(1000);
     203    console.out("   ...checking connection");
     204    dim.wait("FAD_CONTROL", "Connected", 3000);
    203205    console.out("");
    204206}
     
    261263        {
    262264            dim.wait("MCP", "TakingData", 15000);
    263 break;
     265            break;
    264266        }
    265267        catch (e)
     
    295297            reconnect(list, "configuration");
    296298
    297             /*if (n<2)
    298                 return false;
    299 
    300                 throw e;
    301                 */
    302 
    303299            if (n==2)
    304300                throw e;
     301
     302            dim.wait("MCP", "Idle", 3000);
    305303        }
    306304    }
     
    480478{
    481479    var state = dim.state("BIAS_CONTROL").name;
     480
     481    if (state=="Disconnected")
     482    {
     483        console.out("  Voltage off: bias crate disconnected!");
     484        return;
     485    }
    482486
    483487    // check of feedback has to be switched on
     
    657661    console.out("");
    658662    console.out("Shutdown procedure seems to be finished...");
     663    console.out("  "+new Date().toUTCString());
    659664    console.out("  Telescope at Zd=%.1fdeg Az=%.1fdeg".$(report.obj['Zd'], report.obj['Az']));
    660665    console.out("  Please make sure the park position was reached");
     
    927932    }
    928933
    929     if (system_on===false && task!="STARTUP")
     934    if (system_on===false && obs[obs].task!="STARTUP")
    930935    {
    931936        v8.sleep(1000);
Note: See TracChangeset for help on using the changeset viewer.