#pragma rtGlobals=1 // Use modern global access method. #include // Assumes that the X scaling of the pw wave has been set appropriately so that it is easy // to get interpolated temperature from an X (time) value Function TransAx_fromWave(pw, x) Wave/Z pw Variable x if (!WaveExists(pw)) return NaN endif // pw is the wave giving Temperature vs time // x is time if (x > rightx(pw)) return NaN endif return pw(x) end