Optical Density for Beta


REQUIREMENTS: firmware v0.38 or higher, PhotosynQ chrome app, cuvette holder add-on. Measure optical density of any sample using the cuvette holder. First, take a measurement blank by taking a measurement with a cuvette full of water. Write down the raw sample value from the blank. Then take your actual sample, and enter the blank value when prompted. The measurement calculates sample absorbance based on the following calculation absorbance = log(sample / blank) .
var output = {};
var blank = 0;


var absorbance_raw = MathMEAN(json.data_raw.slice(10,90));
var absorbance_raw_1 = MathMEAN(json.data_raw.slice(110,190));
var absorbance_raw_2 = MathMEAN(json.data_raw.slice(210,290));
var blank = json.message[0][2];


// if user didn't entera blank, output blank as the absorbance values
if (blank == 0) {
  output ["raw blank"] = absorbance_raw;
}
// if user did enter blank, output blank and absorbance
else {
  output ["absorbance"] = -1*MathLOG(absorbance_raw/blank);
  output ["absorbance_1"] = -1*MathLOG(absorbance_raw_1/blank);
  output ["absorbance_2"] = -1*MathLOG(absorbance_raw_2/blank);
  output ["raw blank"] = json.message[0][2];
}

return output;
{
  "time_offset": 240,
  "time": 1428601243919,
  "device_id": 92,
  "firmware_version": "0.390",
  "sample": [
    {
      "time": 1428601243919,
      "protocol_id": 1,
      "message": [
        [
          "prompt",
          "if running absorbance insert value of raw blank OR if currently running a blank leave empty",
          "18867"
        ]
      ],
      "data_raw": [
        63334,
        17838,
        17835,
        17845,
        17871,
        17874,
        17872,
        17887,
        17889,
        17887,
        17888,
        17900,
        17894,
        17907,
        17902,
        17925,
        17896,
        17921,
        17923,
        17896,
        17926,
        17925,
        17923,
        17911,
        17903,
        17904,
        17904,
        17916,
        17913,
        17912,
        17927,
        17912,
        17930,
        17940,
        17914,
        17939,
        17926,
        17918,
        17919,
        17912,
        17923,
        17911,
        17929,
        17906,
        17846,
        17945,
        17931,
        17929,
        17933,
        17924,
        17936,
        17923,
        17932,
        17960,
        17949,
        17950,
        17937,
        17946,
        17929,
        17938,
        17950,
        17936,
        17955,
        17981,
        17926,
        17960,
        17937,
        17946,
        17959,
        17945,
        17952,
        17922,
        17951,
        17946,
        17946,
        17928,
        17926,
        17903,
        17949,
        17923,
        17947,
        17828,
        17941,
        17927,
        17959,
        17951,
        17920,
        17950,
        17904,
        17933,
        17940,
        17936,
        17939,
        17959,
        17925,
        17937,
        17964,
        17959,
        17958,
        17941
      ]
    }
  ]
}

Protocol connections:
1
Latest Update:
Dec 2017