Experiments With Temperature Sensors - Data Analysis Using Matlab

        In the first part of this project, you gathered time response data for three temperature sensors.  In this part of the project, you will analyze the data you gathered and determine the time constant(s) of these sensors.  First, be sure you have done the following.

Then, using the three methods outlined in the note, compute values for the time constants, and compare results for the different methods.  You can use Matlab to get the time constant for your data using the analysis method.

        Here is what you need to do.

        The first two methods above are relatively simple to apply.  The third method requires some computation that can be done in an analysis program like Mathcad, Matlab or a spreadsheet.  Here is the text of a Matlab m-file that will do the computations.
load tempdata.txt -ASCII
time = tempdata(:,1)
temp = tempdata(:,2)
plot(time,temp)
Tss = 68.5
deltemp = Tss - temp
logdeltemp = log(deltemp)
plot(time,logdeltemp)
c = polyfit(time,logdeltemp,1)
Tau = -1/c(1)
TStart = exp(c(2))
This workspace does the following operations. When you have calculated the time constant for each case summarize your methods in a report (using tables to present your results) and compare your values using the different methods and note whether the devices have consistent time constants for rising and falling transients.