store waveform scale - part-cw/lambdanative GitHub Wiki
(store-waveform-scale store id lst)
store-waveform-scale sets waveform scaling information. The scaling list has four parameters: (imin imax omin omax), where [imin imax] specifies the input range and [omin omax] specifies the output range.
Parameter | Description |
---|---|
store | Store name |
id | Id under which waveform is to be stored |
lst | Waveform scaling information. Set to '(0 0 0 0) to disable scaling |
Example
Example 1: Disable PLETH waveform scaling.
(store-waveform-scale store "PLETH" '(0 0 0 0))
Example 2: Set PLETH waveform scaling to convert integer values 0-4096 to a 0.0-1.0 range
(store-waveform-scale store "PLETH" '(0 4095 0. 1.)