Scale and/or compute better Channel.displayRange
#91
Labels
calibration
Related to the generation or application of `Transform` function
enhancement
New feature or request
The
Channel
objects'displayRange
attribute is currently set usingparsers.getParserRanges()
. There are two problems with this:the data is not scaled to engineering units, and it uses the maximum range of the value in the parser's struct, which is incorrect (particularly for digital sensors).
The is also set up to use values from the
<SubChannel>
elements<SubChannelRangeMin>
and<SubChannelRangeMax>
, but as of 10/2021, those are not being written.Two things that can be done:
getParserRanges()
from internal units to engineering units (note: exclude the per-channel calibration)Some of the latter has been implemented for
endaqlib
(not yet released); the functionality can be moved intoidelib
.The text was updated successfully, but these errors were encountered: