Changeset 12249 for trunk


Ignore:
Timestamp:
10/23/11 17:05:23 (13 years ago)
Author:
tbretz
Message:
Added some Dim descriptions and a new service propagating the nominal voltages.
File:
1 edited

Legend:

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

    r12236 r12249  
    4343
    4444    vector<uint16_t> fVoltCmd;     // Current command voltage in DAC units (12bit = 90V)
    45     vector<uint16_t> fVoltGapd;
    4645
    4746    vector<bool>     fPresent;
     
    6867    vector<uint16_t> fVolt;        // Current voltage in DAC units (12bit = 90V)
    6968    vector<uint16_t> fVoltRef;     // Current reference voltage in DAC units (12bit = 90V)
     69    vector<uint16_t> fVoltGapd;    // Nominal G-APD voltages at 25deg C
    7070
    7171    vector<int16_t>  fCurrent;     // Current in ADC units (12bit = 5mA)
     
    7979
    8080    virtual void UpdateV()
     81    {
     82    }
     83
     84    virtual void UpdateVgapd()
    8185    {
    8286    }
     
    755759        fIsVerbose(false),
    756760        fVoltCmd(kNumChannels),
    757         fVoltGapd(kNumChannels),
    758761        //fRefCurrent(kNumChannels),
    759762        fPresent(kNumBoards),
     
    767770        fVolt(kNumChannels),
    768771        fVoltRef(kNumChannels),
     772        fVoltGapd(kNumChannels),
    769773        fCurrent(kNumChannels)
    770774    {
     
    10521056        for (size_t i=0; i<kNumChannels; i++)
    10531057            fVoltGapd[i] = volt[i]*4096/90;
     1058
     1059        UpdateVgapd();
    10541060
    10551061        return true;
     
    14141420    DimDescribedService fDimCurrent;
    14151421    DimDescribedService fDimVoltage;
     1422    DimDescribedService fDimGapd;
    14161423
    14171424    void UpdateA()
     
    14281435    }
    14291436
     1437    void UpdateVgapd()
     1438    {
     1439        fDimGapd.Update(fVoltGapd);
     1440    }
    14301441
    14311442public:
    14321443    ConnectionDimBias(ba::io_service& ioservice, MessageImp &imp) :
    14331444        ConnectionBias(ioservice, imp),
    1434         fDimCurrent("BIAS_CONTROL/CURRENT", "S:416", ""),
    1435         fDimVoltage("BIAS_CONTROL/VOLTAGE", "S:416;S:416", "")
     1445        fDimCurrent("BIAS_CONTROL/CURRENT", "S:416",       "|I[uA]:Bias current"),
     1446        fDimVoltage("BIAS_CONTROL/VOLTAGE", "S:416;S:416", "|U[V]:Applied bias voltage|Uref[V]:Reference bias voltage"),
     1447        fDimGapd(   "BIAS_CONTROL/NOMINAL", "S:416",       "|U[V]:Nominal G-APD voltage at 25deg C")
    14361448    {
    14371449    }
Note: See TracChangeset for help on using the changeset viewer.