Changeset 16852 for trunk/FACT++/scripts


Ignore:
Timestamp:
06/15/13 18:08:58 (12 years ago)
Author:
tbretz
Message:
Some changes to the output, replaced some console.out by dim.log
File:
1 edited

Legend:

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

    r16839 r16852  
    2020        return;
    2121
    22     console.out("", "  "+new Date().toUTCString()+": Incomplete event ["+inc+","+incomplete+"] detected, sending MCP/STOP");
     22    console.out("");
     23    dim.log("Incomplete event ["+inc+","+incomplete+"] detected, sending MCP/STOP");
    2324
    2425    incomplete = inc;
     
    6566*/
    6667    console.out("");
    67     console.out("  "+new Date().toUTCString()+": Trying automatic reconnect ["+txt+",n="+list.length+"]...");
    68     console.out(new Date().toUTCString());
     68    dim.log("Trying automatic reconnect ["+txt+",n="+list.length+"]...");
    6969
    7070    if (list.length>3)
     
    109109    // Wait also for MCP to have all boards connected again
    110110    dim.wait("MCP", "Idle", 3000);
     111
     112    dim.log("Automatic reconnect successfull.");
    111113    console.out("");
    112114}
     
    120122
    121123    var nextrun = sub_startrun.get().obj['next'];
    122     console.out("  "+new Date().toUTCString()+": Take run %3d".$(nextrun)+": N="+count+" T="+time+"s ["+type+"]");
     124    dim.log("Take run %3d".$(nextrun)+": N="+count+" T="+time+"s ["+type+"]");
    123125
    124126    // FIXME: Replace by callback?
Note: See TracChangeset for help on using the changeset viewer.