FACT++  1.0
void ConnectionDimBias::UpdateV ( const Time  now = Time())
inlineprivatevirtual

Reimplemented from ConnectionBias.

Definition at line 1574 of file biasctrl.cc.

References kNumChannels, DimService::setQuality(), DimDescribedService::setTime(), and DimDescribedService::Update().

1575  {
1576  const bool rc = !memcmp(fDacActual.data(), fDacTarget.data(), kNumChannels*2);
1577 
1578  vector<uint16_t> val(2*kNumChannels);
1579  memcpy(val.data(), fDacActual.data(), kNumChannels*2);
1580  memcpy(val.data()+kNumChannels, fDacTarget.data(), kNumChannels*2);
1581  fDimDac.setTime(now);
1582  fDimDac.setQuality(rc);
1583  fDimDac.Update(val);
1584 
1585  vector<float> volt(kNumChannels);
1586  for (float ch=0; ch<kNumChannels; ch++)
1587  volt[ch] = ConvertDacToVolt(ch, fDacActual[ch]);
1588  fDimVolt.setTime(now);
1589  fDimVolt.setQuality(rc);
1590  fDimVolt.Update(volt);
1591  }
void setQuality(int quality)
Definition: discpp.cxx:1256
DimDescribedService fDimDac
Definition: biasctrl.cc:1558
DimDescribedService fDimVolt
Definition: biasctrl.cc:1559
void setTime(const Time &t)
double ConvertDacToVolt(uint16_t ch, uint16_t dac)
Definition: biasctrl.cc:986
vector< uint16_t > fDacTarget
Definition: biasctrl.cc:99
vector< uint16_t > fDacActual
Definition: biasctrl.cc:101

+ Here is the call graph for this function: