FACT++  1.0
bool ConnectionBias::RampAllChannelsVoltage ( const vector< float > &  volt)
inline

Definition at line 1009 of file biasctrl.cc.

References kNumChannels.

1010  {
1011  vector<uint16_t> dac(kNumChannels);
1012  for (size_t ch=0; ch<kNumChannels; ch++)
1013  {
1014  if (!CheckChannelVoltage(ch, volt[ch]))
1015  return false;
1016 
1017  dac[ch] = ConvertVoltToDac(ch, volt[ch]);
1018  }
1019 
1020  return RampAllChannelsDac(dac);
1021  }
bool CheckChannelVoltage(uint16_t ch, float volt)
Definition: biasctrl.cc:912
uint16_t ConvertVoltToDac(uint16_t ch, double volt)
Definition: biasctrl.cc:977
bool RampAllChannelsDac(const vector< uint16_t > &dac)
Definition: biasctrl.cc:955