diff --git a/projects/dataforth-dos/datasheet-pipeline/implementation/templates/datasheet-exact.js b/projects/dataforth-dos/datasheet-pipeline/implementation/templates/datasheet-exact.js index 9c5eeac6..876bb95f 100644 --- a/projects/dataforth-dos/datasheet-pipeline/implementation/templates/datasheet-exact.js +++ b/projects/dataforth-dos/datasheet-pipeline/implementation/templates/datasheet-exact.js @@ -438,12 +438,11 @@ function buildTSpecs(specs, family, stepResponse) { function formatAccuracyLine(point, sensorNum, maxIn) { let stimStr; - if (sensorNum >= 3 && sensorNum <= 6) { - // Temperature: +####.## + if ((sensorNum >= 3 && sensorNum <= 6) || sensorNum === 7) { + // Temperature: +####.## (thermocouples 3-6 AND RTD 7 — Dataforth RTD + // datasheets report the input as temperature, not the raw resistance. + // The .DAT/raw_data stimulus is already in degrees C, so no conversion.) stimStr = formatSigned(point.stim, 2, 8); - } else if (sensorNum === 7) { - // Resistance: #####.## - stimStr = point.stim.toFixed(2).padStart(8); } else { // Voltage/Current: +###.### const scale = (maxIn != null && maxIn < 1) ? 1000 : 1; @@ -557,12 +556,11 @@ function generateExactDatasheet(record, specs) { // Input column header based on sensor type let inputHeader; - if (sensorNum >= 3 && sensorNum <= 6) { + if ((sensorNum >= 3 && sensorNum <= 6) || sensorNum === 7) { + // RTD (7) reports temperature, same as thermocouples (3-6). inputHeader = ' Temp. (C)'; } else if (sensorNum === 2 || sensorNum === 9) { inputHeader = ' Iin (mA)'; - } else if (sensorNum === 7) { - inputHeader = ' Rin (ohms)'; } else { inputHeader = (maxIn != null && maxIn < 1) ? ' Vin (mV)' : ' Vin (V)'; }