Changeset 11494


Ignore:
Timestamp:
07/20/11 18:10:49 (13 years ago)
Author:
tbretz
Message:
Added some code to stop the ftm and the fads.
File:
1 edited

Legend:

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

    r11483 r11494  
    174174    int StopRun(const EventImp &evt)
    175175    {
     176        if (fStatusFTM.second==FTM::kTakingData)
     177            Dim::SendCommand("FTM_CONTROL/STOP");
     178
     179        // FIXME: Do step 2 only when FTM is stopped
     180        if (fStatusFAD.second==FAD::kConnected)
     181        {
     182            Dim::SendCommand("FAD_CONTROL/ENABLE_TRIGGER_LINE",      bool(false));
     183            Dim::SendCommand("FAD_CONTROL/ENABLE_CONTINOUS_TRIGGER", bool(false));
     184        }
     185
    176186        return GetCurrentState();
    177187    }
Note: See TracChangeset for help on using the changeset viewer.