CALIBRATION: Electronic baseline 10us, detector 34


All FINAL BETA Electronic baseline macros to be applyed to the 8 "Electronic baseline" protocols, used to calculate electronic baseline calibration. This macros just averages the middle 90 values in the measurement, and outputs that average as a variable called "electronic baseline".
var output = {};

var ave = MathMEAN(json.data_raw.slice(10,90));

output ["electronic baseline"] = MathROUND(ave,2);
output["pulse length us"] = 10;

return output;
{
  "time_offset": 300,
  "time": 1415818962965,
  "device_id": 0,
  "firmware_version": "0.340",
  "sample": [
    [
      {
        "time": 1415818962965,
        "protocol_id": "75",
        "data_raw": [
          459,
          467,
          463,
          463,
          456,
          465,
          467,
          462,
          466,
          472,
          471,
          464,
          470,
          462,
          454,
          463,
          456,
          429,
          469,
          466,
          464,
          469,
          472,
          468,
          474,
          463,
          467,
          460,
          457,
          461,
          466,
          460,
          465,
          461,
          485,
          457,
          472,
          424,
          459,
          464,
          468,
          462,
          471,
          460,
          471,
          461,
          476,
          460,
          467,
          473,
          471,
          466,
          472,
          475,
          470,
          464,
          467,
          473,
          463,
          455,
          464,
          462,
          466,
          466,
          466,
          472,
          466,
          460,
          461,
          466,
          471,
          473,
          465,
          460,
          454,
          464,
          456,
          456,
          458,
          465,
          459,
          463,
          458,
          428,
          470,
          463,
          463,
          463,
          471,
          471,
          470,
          463,
          467,
          467,
          461,
          464,
          462,
          468,
          464,
          470
        ]
      }
    ]
  ]
}
012409 pbi 160 low low res headshot
Created by

Greg Austic


Protocol connections:
1
Latest Update:
Jan 2015