Changeset 17535 for trunk/FACT++/scripts


Ignore:
Timestamp:
01/28/14 10:34:43 (11 years ago)
Author:
tbretz
Message:
Stop trigger if trigger is on. Fixed a wrong call of get() in a timeout
File:
1 edited

Legend:

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

    r17404 r17535  
    2727
    2828console.out(("\n%78s".$("")).replace(/ /g, "="));
     29
     30if (dim.state("FTM_CONTROL").name=="TriggerOn")
     31{
     32    dim.send("FTM_CONTROL/STOP_TRIGGER");
     33    dim.wait("FTM_CONTROL", "Valid");
     34}
     35
    2936
    3037include('scripts/CheckStates.js');
     
    93100
    94101        console.out("Waiting for open files to be closed...");
    95         v8.timeout(60000, function() { if (sub_runs.get(false).qos==0) return true; });
     102        v8.timeout(60000, function() { if (sub_runs.get(0, false).qos==0) return true; });
    96103
    97104        // Although the file should be closed now, the processing might still be on-going
Note: See TracChangeset for help on using the changeset viewer.