Changeset 16787 for trunk/FACT++/scripts


Ignore:
Timestamp:
06/10/13 11:57:12 (11 years ago)
Author:
tbretz
Message:
Improved the output whenever a command is sent.
Location:
trunk/FACT++/scripts
Files:
7 edited

Legend:

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

    r14968 r16787  
    2121
    2222    case "VoltageOff":
    23         console.out("Agilent in VoltageOff... switching agilent output on.");
     23        console.out("Agilent in 'VoltageOff'... sending SET_POWER ON... waiting for 'VoltageOn'.");
    2424        dim.send("AGILENT_CONTROL/SET_POWER", true);
    2525        return "VoltageOn";
     
    2929
    3030    case "VoltageHigh":
    31         throw new Error("Agilent reports voltage above limit... please check.");
     31        throw new Error("Agilent reports voltage above limit ('VoltageHigh')... please check.");
    3232    }
    3333
  • trunk/FACT++/scripts/handleFeedbackConnected.js

    r14969 r16787  
    2828    case "CurrentControl":
    2929    case "Calibrating":
    30         console.out("Feedback in "+state.name+"... stop feedback.");
     30        console.out("Feedback in '"+state.name+"'... sending STOP... waiting for 'Connected'.");
    3131        dim.send("FEEDBACK/STOP");
    3232        return "Connected";
  • trunk/FACT++/scripts/handleFscConnected.js

    r14763 r16787  
    1515    // Do-nothing conditions
    1616    case "Disconnected":
    17         console.out("Fsc in Diconnected... connect.");
     17        console.out("Fscctrl in 'Diconnected'... sending RECONNECT... waiting for 'Connected'.");
    1818        dim.send("FSC_CONTROL/RECONNECT");
    1919        return "Connected";
  • trunk/FACT++/scripts/handleFtmIdle.js

    r14968 r16787  
    1515    {
    1616    case "Disconnected":
    17         console.out("Ftm in "+state.name+"... connect.");
     17        console.out("Ftmctrl in 'Disconnected'... sending RECONNECT... wainting for 'Idle'.");
    1818        dim.send("FTM_CONTROL/RECONNECT");
    19         return "Idle";
     19        return "Valid";
    2020
    2121    case "Idle":
    22         //ftu_counter = data.counter;
     22        console.out("Ftmctrl in 'Idle'... sending DISCONNECT... wainting for 'Disconnected'.");
     23        dim.send("FTM_CONTROL/DISCONNECT");
     24        v8.sleep(3000);
     25        return "Disconnected";
     26
     27    case "Valid":
    2328        return "";
    2429
    2530    case "TriggerOn":
    26         console.out("Ftm in "+state.name+"... stop trigger.");
     31        console.out("Ftmctrl in 'TriggerOn'... sending STOP_TRIGGER... waiting for 'Idle'.");
    2732        dim.send("FTM_CONTROL/STOP_TRIGGER");
    28         return "Idle";
     33        return "Valid";
    2934 
    3035    case "Configuring1":
    3136    case "Configuring2":
    3237    case "Configured":
    33         console.out("Ftm in "+state.name+"... reset configuration.");
     38        console.out("Ftmctrl in '"+state.name+"'... sending RESET_CONFIGURE... waiting for 'Idle'.");
    3439        dim.send("FTM_CONTROL/RESET_CONFIGURE");
    35         return "Idle";
     40        return "Valid";
    3641
    3742    case "ConfigError1":
  • trunk/FACT++/scripts/handleLidClosed.js

    r14968 r16787  
    2222    case "Inconsistent":
    2323    case "Open":
    24         console.out("Lid in "+state.name+"... closing lids.");
     24        console.out("Lidctrl in '"+state.name+"'... sending CLOSE... waiting for 'Closed'.");
    2525        dim.send("LID_CONTROL/CLOSE");
    2626        return "Closed";
  • trunk/FACT++/scripts/handlePwrCameraOn.js

    r16052 r16787  
    2121    // Drive off
    2222    case "PowerOff":
    23         console.out("Pwr in PowerOff... switching camera power on.");
     23        console.out("Pwrctrl in 'PowerOff'... sending CAMERA_POWER ON... waiting for 'DriveOff'.");
    2424        dim.send("PWR_CONTROL/CAMERA_POWER", true);
    2525        return "DriveOff";
     
    2727    // Drive on
    2828    case "DriveOn":
    29         console.out("Pwr in DriveOn... switching camera power on.");
     29        console.out("Pwrctrl in 'DriveOn'... sending CAMERA_POWER ON... waiting for 'SystemOn'.");
    3030        dim.send("PWR_CONTROL/CAMERA_POWER", true);
    3131        return "SystemOn";
  • trunk/FACT++/scripts/handleRatectrlConnected.js

    r16448 r16787  
    1919    case "GlobalThresholdSet":
    2020    case "InProgress":
    21         console.out("Ratectrl in "+state.name+"... stop.");
     21        console.out("Ratectrl in '"+state.name+"'... sending STOP... waiting for 'Connected'.");
    2222        dim.send("RATE_CONTROL/STOP");
    2323        return "Connected";
Note: See TracChangeset for help on using the changeset viewer.