Changeset 17234


Ignore:
Timestamp:
10/17/13 15:17:30 (11 years ago)
Author:
tbretz
Message:
So far the assumption was that the precise one is the DAC, but (most probably) because some current is lost into the OpAMP, the really precise device is the ADC. Consequently, the inverse calibration factor applies to I9 and not to I8.
File:
1 edited

Legend:

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

    r17203 r17234  
    504504
    505505            // Current through ~100 Ohm measurement resistor
    506             const double I8 = (adc-fCalibDeltaI[i])*fCalibR8[i]/100;
     506            //const double I8 = (adc-fCalibDeltaI[i])*fCalibR8[i]/100;
     507            const double I8 = adc-fCalibDeltaI[i];
    507508
    508509            // Current through calibration resistors (R9)
    509                 // This is uncalibrated, biut since the corresponding calibrated
     510            // This is uncalibrated, but since the corresponding calibrated
    510511            // value I8 is subtracted, the difference should yield a correct value
    511512            const double I9 = fBiasDac[i] * (1e-3/4096);//U9/R9;   [A]
    512513
    513514            // Current in R4/R5 branch
    514             const double Iout = I8 - I9;//I8>I9 ? I8 - I9 : 0;
     515            //const double Iout = I8 - I9;//I8>I9 ? I8 - I9 : 0;
     516            const double Iout = I8 - I9*100/fCalibR8[i];//I8>I9 ? I8 - I9 : 0;
    515517
    516518            // Applied voltage at calibration resistors, according to biasctrl
Note: See TracChangeset for help on using the changeset viewer.