// pass counts returned by AIM-16 at the correct gain // compensation is in 10ths of degrees, returned by the reference junction // (channel 0) of the AIM-16, with both TMP jumpers installed. // The curve is of type char. Available types are: // b, e, j, k, r, s, t, a, and u. // Conversion gain is the gain that the channel data was acquired at. // // The return value is in 10ths of degrees Fahrenheit. In order to convert // to degrees F, you would divide the return value by 10. extern "C" unsigned linearize(unsigned count,int compensation,char curve,int conv_gain);