/// <summary> /// Convert Voltage Value of RTD into Temperature Value /// </summary> /// <param name="temperature">Temperature Value Measured(the default unit is ℃)</param> /// <param name="resValue">Resistance Value of RTD(Unit:Ohm)</param> /// <returns></returns> public static double Convert(double resValue, RTDType type) { return(RTD3851ValueConvertor.ConvertResistanceToTemperature(resValue, type)); }
/// <summary> /// Convert Voltage Array of RTD into Temperature Array /// </summary> /// <param name="temperature">Temperature Array Measured(the default unit is ℃) </param> /// <param name="resValues">Resistance Array of RTD(Unit:Ohm) </param> /// <returns></returns> public static double[] Convert(double[] resValues, RTDType type) { return(Array.ConvertAll(resValues, new Converter <double, double>(x => RTD3851ValueConvertor.ConvertResistanceToTemperature(x, type)))); }