Changeset 16534


Ignore:
Timestamp:
05/31/13 15:55:54 (12 years ago)
Author:
tbretz
Message:
Send CLOSE_OPEN_FILES when a run is stopped.
File:
1 edited

Legend:

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

    r16532 r16534  
    131131
    132132        // FIXME: Do step 2 only when FTM is stopped
    133         if (fDimFAD.state()==FAD::State::kConnected)
     133        if (fDimFAD.state()==FAD::State::kConnected || fDimFAD.state()==FAD::State::kRunInProgress)
    134134        {
    135135            //Dim::SendCommand("FAD_CONTROL/ENABLE_TRIGGER_LINE",      bool(false));
    136136            Message("Stopping FAD");
    137137            Dim::SendCommandNB("FAD_CONTROL/ENABLE_CONTINOUS_TRIGGER", bool(false));
     138            if (fDimFAD.state()==FAD::State::kRunInProgress)
     139                Dim::SendCommandNB("FAD_CONTROL/CLOSE_OPEN_FILES");
    138140        }
    139141
Note: See TracChangeset for help on using the changeset viewer.