Changeset 10107 for fact/BIASctrl


Ignore:
Timestamp:
01/19/11 13:11:51 (14 years ago)
Author:
ogrimm
Message:
hv command crashed when no bias board present
Location:
fact/BIASctrl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • fact/BIASctrl/History.txt

    r10096 r10107  
    667/12/2010       Added dynamic mode
    776/1/2011        RampVoltages() had infinite loop if crate communication stopped
     819/1/2011       'hv' command crashed when no bias board was present
  • fact/BIASctrl/User.cc

    r10096 r10107  
    204204        }
    205205
     206
    206207        // Loop over given crates and channels
    207208        for (int i=Crt.Min; i<=Crt.Max; i++) for (int j=Chan.Min; j<=Chan.Max; j++) {
     209          // Check that indices are in legal range
     210          if (i<0 || i>=(int) Crates.size() || j<0 || j >=NUM_CHANNELS) continue;
     211 
    208212          // Voltage change (number starts with + oder -) ignored if current DAC value is zero
    209213          if (isdigit(Parameter[n+1][0])==0 && Crates[i]->GetDAC(j) == 0) continue;
Note: See TracChangeset for help on using the changeset viewer.