Changeset 13160 for trunk


Ignore:
Timestamp:
03/21/12 14:33:59 (13 years ago)
Author:
tbretz
Message:
Some clean up to the commands.
File:
1 edited

Legend:

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

    r12998 r13160  
    724724        return T::GetCurrentState();
    725725    }
    726 
     726/*
    727727    int StartRun(const EventImp &evt, bool start)
    728728    {
     
    735735        return T::GetCurrentState();
    736736    }
    737 
     737*/
    738738    int PhaseShift(const EventImp &evt)
    739739    {
     
    861861        return T::GetCurrentState();
    862862    }
    863 
     863/*
    864864    int Test(const EventImp &evt)
    865865    {
     
    871871
    872872        return T::GetCurrentState();
    873     }
     873    }*/
    874874
    875875
     
    16421642        T::AddEvent("SEND_N_TRIGGERS", "I", FAD::kConnecting, FAD::kConnected, FAD::kWritingData)
    16431643            (bind(&StateMachineFAD::SendTriggers, this, placeholders::_1))
    1644             ("Issue software triggers");
     1644            ("Issue N software triggers (note that these are the triggers sent, not the triggers executed)"
     1645             "|N[int]: Number of triggers to be sent to the board.");
     1646        /*
    16451647        T::AddEvent("START_RUN", "", FAD::kConnecting, FAD::kConnected, FAD::kWritingData)
    16461648            (bind(&StateMachineFAD::StartRun, this, placeholders::_1, true))
     
    16491651            (bind(&StateMachineFAD::StartRun, this, placeholders::_1, false))
    16501652            ("");
     1653            */
    16511654        T::AddEvent("PHASE_SHIFT", "S:1", FAD::kConnecting, FAD::kConnected, FAD::kWritingData)
    16521655            (bind(&StateMachineFAD::PhaseShift, this, placeholders::_1))
    1653             ("Adjust ADC phase (in 'steps')");
     1656            ("Adjust ADC phase (in 'steps')"
     1657             "|phase[short]");
    16541658
    16551659        T::AddEvent("RESET_EVENT_COUNTER", FAD::kConnecting, FAD::kConnected, FAD::kWritingData)
    16561660            (bind(&StateMachineFAD::Cmd, this, FAD::kCmdResetEventCounter))
    1657             ("");
     1661            ("Reset the FAD boards' event counter to 0.");
    16581662
    16591663        T::AddEvent("SET_RUN_NUMBER", "X:1", FAD::kConnecting, FAD::kConnected, FAD::kWritingData)
    16601664            (bind(&StateMachineFAD::SetRunNumber, this, placeholders::_1))
    1661             ("");
     1665            ("Sent a new run-number to the boards"
     1666             "|num[int]:Run number");
    16621667
    16631668        T::AddEvent("SET_MAX_MEMORY", "S:1")
     
    16881693        T::AddEvent("CONFIGURE", "X:2;C", FAD::kConnected, FAD::kConfigured, FAD::kWritingData)
    16891694            (bind(&StateMachineFAD::StartConfigure, this, placeholders::_1))
    1690             ("");
     1695            ("Configure a new run. If the internla trigger is enabled this might even start a new run."
     1696             "|time_max[s]:Maximum time before the run is closed in seconds (0: unlimited)"
     1697             "|num_max[int]:Maximum number of events before the run is closed in seconds (0: unlimited)"
     1698             "|run_type[string]:Run type which describes the runs");
    16911699
    16921700        T::AddEvent("RESET_CONFIGURE", FAD::kConfiguring1, FAD::kConfiguring2, FAD::kConfigured)
    16931701            (bind(&StateMachineFAD::ResetConfig, this))
    1694             ("");
     1702            ("If configuration failed and the fadctrl is waiting for something, use this to reset the state.");
    16951703
    16961704        // Verbosity commands
     
    17071715        T::AddEvent("SET_DATA_OUTPUT", "B:1")
    17081716            (bind(&StateMachineFAD::SetDataOutput, this, placeholders::_1))
    1709             ("");
     1717            ("Enable or disable printing of the received adc data to the console"
     1718             "|dataout[bool]:disable or enable data output for received data (yes/no)");
    17101719
    17111720        T::AddEvent("SET_DEBUG_TX", "B:1")
     
    17161725        T::AddEvent("SET_DEBUG_EVENT_BUILDER_OUT", "B:1")
    17171726            (bind(&StateMachineFAD::SetDebugEb, this, placeholders::_1))
    1718             ("");
     1727            ("Enable or disable the debug output from the event builder"
     1728             "|enable[bool]:Enable/Disable (yes/no)");
    17191729
    17201730        T::AddEvent("PRINT_EVENT", "S:1")
     
    17631773            ("Close all run files opened by the EventBuilder.");
    17641774
    1765         T::AddEvent("TEST", "S:1")
    1766            (bind(&StateMachineFAD::Test, this, placeholders::_1))
    1767             ("");
     1775        //T::AddEvent("TEST", "S:1")
     1776        //   (bind(&StateMachineFAD::Test, this, placeholders::_1))
     1777        //    ("");
    17681778
    17691779
Note: See TracChangeset for help on using the changeset viewer.