Changeset 11943 for trunk


Ignore:
Timestamp:
09/02/11 09:37:04 (13 years ago)
Author:
tbretz
Message:
Added explanatory strings for command line options and events.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/biasctrl.cc

    r11940 r11943  
    173173            ostringstream msg;
    174174            msg << hex << setfill('0');
    175             msg << "Initial answer received:";
    176             msg << " 0x" << setw(2) << (int)answer[0];
    177             msg << " 0x" << setw(2) << (int)answer[1];
    178             msg << " 0x" << setw(2) << (int)answer[2];
     175            msg << "Initial answer received: 0x";
     176            msg << setw(2) << (int)answer[2];
     177            msg << setw(2) << (int)answer[1];
     178            msg << setw(2) << (int)answer[0];
    179179            Message(msg);
    180180
     
    13981398        T::AddEvent("DISCONNECT", kConnected, kAtReference)
    13991399            (bind(&StateMachineBias::Disconnect, this))
    1400             ("disconnect from ethernet");
     1400            ("disconnect from USB");
    14011401
    14021402        T::AddEvent("RECONNECT", "O", kDisconnected, kConnected, kAtReference)
    14031403            (bind(&StateMachineBias::Reconnect, this, placeholders::_1))
    1404             ("(Re)connect ethernet connection to FTM, a new address can be given"
    1405              "|[host][string]:new ethernet address in the form <host:port>");
     1404            ("(Re)connect USB connection to Bias power supply, a new address can be given"
     1405             "|tty[string]:new USB address");
    14061406
    14071407
     
    14451445        T::AddEvent("STOP", kConnected, kRamping, kAtReference, kOverCurrent)
    14461446            (Wrapper(bind(&ConnectionBias::RampStop, &fBias)))
    1447             ("");
     1447            ("Stop an on-going ramping");
    14481448
    14491449        T::AddEvent("START", kConnected, kOverCurrent)
    14501450            (Wrapper(bind(&ConnectionBias::RampStart, &fBias)))
    1451             ("");
     1451            ("Start a ramping if no ramping is in progress and if reference values differ from current voltages");
    14521452
    14531453
     
    14551455        T::AddEvent("PRINT_CURRENTS")
    14561456            (Wrapper(bind(&ConnectionBias::PrintA, &fBias)))
    1457             ("");
     1457            ("Print a table with all current read back with the last request operation");
    14581458        T::AddEvent("PRINT_VOLTAGES")
    14591459            (Wrapper(bind(&ConnectionBias::PrintV, &fBias)))
    1460             ("");
     1460            ("Print a table with all voltages (current and reference voltages as currently in memory)");
    14611461        T::AddEvent("PRINT_GAPD_REFERENCE_VOLTAGES")
    14621462            (Wrapper(bind(&ConnectionBias::PrintGapd, &fBias)))
    1463             ("");
     1463            ("Print the G-APD reference values obtained from file");
    14641464
    14651465
     
    14891489    }
    14901490
    1491     ~StateMachineBias() { T::Warn("Implement rampming at shutdown!"); }
     1491    ~StateMachineBias() { T::Warn("TODO: Implement rampming at shutdown!"); }
    14921492
    14931493    int EvalOptions(Configuration &conf)
     
    16051605        ("no-dim,d",        po_bool(),  "Disable dim services")
    16061606        ("dev",             var<string>("FTE00FOH"),  "Device address of USB port to bias-power supply")
    1607         ("quiet,q",         po_bool(),        "Disable printing contents of all received messages (except dynamic data) in clear text.")
    1608         ("ramp-time",       var<uint16_t>(15),   "")
    1609         ("ramp-step",       var<uint16_t>(46),   "")
    1610         ("update-interval", var<uint16_t>(3000), "")
    1611         ("sync-delay",      var<uint16_t>(333),  "")
    1612         ("volt-max",        var<float>(75),      "")
     1607        ("quiet,q",         po_bool(),           "Disable printing contents of all received messages (except dynamic data) in clear text.")
     1608        ("ramp-time",       var<uint16_t>(15),   "Delay between the answer of one ramping steps and sending the next ramp command to all channels in milliseconds.")
     1609        ("ramp-step",       var<uint16_t>(46),   "Maximum step in DAC counts during ramping (Volt = DAC*90/4096)")
     1610        ("update-interval", var<uint16_t>(3000), "Interval between two current requests in milliseconds")
     1611        ("sync-delay",      var<uint16_t>(333),  "Delay between sending the inital 0's after a newly established connection to synchronize the output stream in milliseconds")
     1612        ("volt-max",        var<float>(75),      "Upper limit for the voltage which can be applied in Volts")
    16131613        ;
    16141614    // FIXME: Make sure ramping / request and commands are
Note: See TracChangeset for help on using the changeset viewer.