Changeset 17016 for trunk/FACT++/scripts


Ignore:
Timestamp:
08/19/13 12:58:16 (11 years ago)
Author:
tbretz
Message:
Implemented an automatic crate reset in the case the fdactrl is still in Connecting after the re-connect.
File:
1 edited

Legend:

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

    r16860 r17016  
    103103    catch (e)
    104104    {
    105         console.out("");
    106         console.out(" + FAD_CONTROL: "+dim.state("FAD_CONTROL").name);
    107         console.out("");
    108         throw e;
     105        if (dim.state("FAD_CONTROL").name!="Connecting")
     106        {
     107            console.out("");
     108            console.out(" + FAD_CONTROL: "+dim.state("FAD_CONTROL").name);
     109            console.out("");
     110            throw e;
     111        }
     112
     113        var crates = [];
     114        for (var i=0; i<list.length; i++)
     115            crates[list[i]/4] = true;
     116
     117        include('scripts/crateReset.js');
     118        crateReset(crates);
    109119    }
    110120
Note: See TracChangeset for help on using the changeset viewer.