FACT++  1.0
int StateMachineMCP::StopRun ( )
inlineprivate

Definition at line 124 of file mcp.cc.

References Agilent::State::kConnected, FTM::State::kTriggerOn, Dim::SendCommandNB(), and DimState::state().

Referenced by StateMachineMCP().

125  {
127  {
128  Message("Stopping FTM");
129  Dim::SendCommandNB("FTM_CONTROL/STOP_TRIGGER");
130  }
131 
132  // FIXME: Do step 2 only when FTM is stopped
133  if (fDimFAD.state()==FAD::State::kConnected || fDimFAD.state()==FAD::State::kRunInProgress)
134  {
135  //Dim::SendCommand("FAD_CONTROL/ENABLE_TRIGGER_LINE", bool(false));
136  Message("Stopping FAD");
137  Dim::SendCommandNB("FAD_CONTROL/ENABLE_CONTINOUS_TRIGGER", bool(false));
138  if (fDimFAD.state()==FAD::State::kRunInProgress)
139  Dim::SendCommandNB("FAD_CONTROL/CLOSE_OPEN_FILES");
140  }
141 
142  return GetCurrentState();
143  }
int GetCurrentState() const
return the current state of the machine
DimDescribedState fDimFTM
Definition: mcp.cc:46
const int32_t & state() const
Definition: DimState.h:80
DimDescribedState fDimFAD
Definition: mcp.cc:47
void SendCommandNB(const std::string &command)
Definition: Dim.h:30
int Message(const std::string &str)
Definition: MessageImp.h:46

+ Here is the call graph for this function:

+ Here is the caller graph for this function: