/*****************************************************************/ /* */ /* Copyright (c) Quinn-Curtis, 1991, 1992 */ /* */ /* Filename: RTTCREF.H */ /* Revision: 2.5 */ /* Date: 12/15/91 */ /* */ /* Description: -Routine for Thermocouple Linearization */ /* */ /*****************************************************************/ #ifdef __cplusplus extern "C" { #endif #ifndef realtype #include "rtstdhdr.h" #endif /* tctype constants */ #ifndef tctype #define BTC 0 #define BPTC 1 #define BNTC 2 #define ETC 3 #define JTC 4 #define JPTC 5 #define JNTC 6 #define KTC 7 #define KPTC 8 #define KNTC 9 #define RTC 10 #define STC 11 #define TTC 12 #define TPTC 13 #define TNTC 14 #define ALLTC 15 #define ZTC 16 #define tctype #endif void rtcapstring(char *s); int gettctype(char *s); void gettcstring(int tc, char *tcstr); int rtrootbracketed(realtype x1,realtype x2, realtype volts); realtype rtpolycalc(realtype xin, realtype *coefarray, int startelement,int order); realtype temptovolts(realtype tempin, int tc, int *err); realtype rtbrentfunction(realtype brentvolts, int brenttc, realtype x); realtype voltstotempiter(realtype volts, int tc, int *error); realtype rtcalcseebeck(realtype tempin, int tc); realtype voltstotemppoly(realtype voltin, int tc, int *err); realtype tclinearize(realtype voltin, int tc, realtype cjctemp,int *err); void polyfittc(realtype mint, realtype maxt, int tc, int numobs, int order, int zerof, matstruct *coef, matstruct *xactual, matstruct *yactual, matstruct *yest, matstruct *resid, realtype *minv, realtype *maxv, realtype *rsq, int *cferror); void settemptovoltsfilename(char *s); void setvoltstotemp(char *s); void inittemptovolts(int tc); void initvoltstotemp(int tc); void freetemptovolts(int tc); void freevoltstotemp(int tc); realtype tclowtemp(int tc); realtype tchightemp(int tc); realtype tclowvolt(int tc); realtype tchighvolt(int tc); #ifdef __cplusplus } #endif