Changeset 16743
- Timestamp:
- 06/06/13 12:02:54 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/scripts/CheckUnderflow.js
r16571 r16743 84 84 dim.send("FAD_CONTROL/SET_FILE_FORMAT", 0); 85 85 86 var sub_ startrun = new Subscription("FAD_CONTROL/START_RUN");87 var sruns = sub_ startrun.get(5000);88 89 if (dim.state("FAD_CONTROL").name=="RunInProgress" || sruns. obj['run']!=-1)86 var sub_runs = new Subscription("FAD_CONTROL/RUNS"); 87 var sruns = sub_runs.get(5000, false); 88 89 if (dim.state("FAD_CONTROL").name=="RunInProgress" || sruns.qos==1) 90 90 { 91 91 dim.send("FAD_CONTROL/CLOSE_OPEN_FILES"); … … 93 93 94 94 console.out("Waiting for open files to be closed..."); 95 v8.timeout(60000, function() { if (sub_ startrun.get().obj['run']==-1) return true; });95 v8.timeout(60000, function() { if (sub_runs.get(false).qos==0) return true; }); 96 96 97 97 // Although the file should be closed now, the processing might still be on-going 98 98 // and delayed events might be received. The only fix for that issue is to 99 99 // add the run number to the data we are waiting for 100 v8.sleep(10000); 101 } 100 v8.sleep(5000); 101 } 102 103 sub_runs.close(); 102 104 103 105 console.out("Starting drs-gain... waiting for new event"); 104 106 107 var sub_startrun = new Subscription("FAD_CONTROL/START_RUN"); 105 108 var sub_incomplete = new Subscription("FAD_CONTROL/INCOMPLETE"); 106 109 var sub_connections = new Subscription("FAD_CONTROL/CONNECTIONS");
Note:
See TracChangeset
for help on using the changeset viewer.