FACT++  1.0
void ConnectionBias::OverCurrentReset ( )
inline

Definition at line 1099 of file biasctrl.cc.

References Error(), and kNumChannels.

Referenced by StateMachineBias< T, S >::StateMachineBias().

1100  {
1101  if (fWaitingForAnswer>=0)
1102  {
1103  ostringstream msg;
1104  msg << "OverCurrentReset - Answer on last command (id=" << fWaitingForAnswer << ") not yet received.";
1105  Error(msg);
1106  return;
1107  }
1108 
1109  if (fIsRamping)
1110  {
1111  Warn("OverCurrentReset - Ramping in progres.");
1112  RampStop();
1113  }
1114 
1115  vector<uint16_t> dac(fDacActual);
1116 
1117  for (int ch=0; ch<kNumChannels; ch++)
1118  if (fCurrent[ch]<0)
1119  dac[ch] = 0;
1120 
1121  SetAllChannels(dac, true);
1122  }
vector< int16_t > fCurrent
Definition: biasctrl.cc:72
void RampStop()
Definition: biasctrl.cc:1188
void SetAllChannels(const vector< uint16_t > &dac, bool special=false)
Definition: biasctrl.cc:718
int Error(const std::string &str)
Definition: MessageImp.h:49
int Warn(const std::string &str)
Definition: MessageImp.h:48
bool fIsRamping
Definition: biasctrl.cc:60
int fWaitingForAnswer
Definition: biasctrl.cc:61
vector< uint16_t > fDacActual
Definition: biasctrl.cc:101

+ Here is the call graph for this function:

+ Here is the caller graph for this function: