Difference between revisions of "The Methods"

From ESE497 Wiki
Jump to navigationJump to search
Line 61: Line 61:
  
 
If an equilibrium is reached, then images are taken at different slices of the tissue. If an equilibrium is not reach in a certain time, determined by a header file parameter, then imaging occurs as though equilibrium had been reached. These images are then saved in the "ult" file in the experiment directory. The images are saved with the name "(experiment ID)_(temperature)_(slice number)".
 
If an equilibrium is reached, then images are taken at different slices of the tissue. If an equilibrium is not reach in a certain time, determined by a header file parameter, then imaging occurs as though equilibrium had been reached. These images are then saved in the "ult" file in the experiment directory. The images are saved with the name "(experiment ID)_(temperature)_(slice number)".
 +
 +
After the images are taken, the archived matrices are saved in a mat-file named "(experiment ID)exp.mat".

Revision as of 01:24, 13 May 2011

This page will go over the procedure of the experiment. This page also functions as a user's manual for running an experiment.

Step 1: Initialization

From the MATLAB terminal, the user calls the script. For this particular experiment, the script was called "Therm3d_sdk_cdh.m".

For the most part, this first step involves initializing and calibrating the various devices associated with the script. At most parts of this first step, the script will prompt the user to press any key when the initializing action is complete.

Windaq and the DATAQ: Part 1

The script will start up the Windaq software.

The script will ask the user to press any key when Windaq is running. When a key is pressed, the script will proceed.

Header File

Associated with each experiment is a header file (.HDR), which contains all the experiment's parameter information. Examples of parameters contained in the header file include

  • Experiment name
  • Temperature Set (the temperature that will be observed over the course of the experiment)
  • Numbers of Channels to be used for temperature measurement

The script parses the header file and sets script variables to be equal to header file parameters.

ThermoHaake

The ThermoHaake pump speed is set to an appropriate value (for now it is a hard-coded value of 50). Then the water is circulated with no heating. This is accomplished by setting the target temperature (or temperature to be heated to) to 10 degrees Celsius and pumping the water. The water is pumped to ensure that the there is little to no temperature gradient in the water for the rest of the initialization process.

Windaq and DATAQ: Part 2

Callibrating the Thermocouples

The script will ask the user to place the thermocouples under the ThermoHaake thermistor and verify that they are there with a key press. For each thermocouple, a temperature measurement will be made. Then the thermocouple measurement system will be modified to match the ThermoHaake thermistor. This is done by observing the equation

<math>y=mx+b</math>

where y is the temperature output of the system (or the measurement), x is the temperature input (or the actual measurement of the thermocouple), m is the slope which is a parameter of the thermocouple, and b is the offset which is determined by this part of the experiment.

The slopes are predetermined and saved as mat-file (in this case as TCSlopes.mat). The script loads the mat-file and passes the values into further calculations.

The offset is determined by the shifting of the previous equation to be

<math>b=y-mx</math>.

We know x and m. If use the ThermoHaake thermistor measurement, which we treat as the actual temperature of the water, as our y value, then we can solve for b.

Thermocouple Placement

The script then asks the user to place the thermocouples in their experimental positions. One thermocouple is placed directly below the the ThemoHaake. Another thermocouple is placed on the opposite end of the insulated container. The remaining four thermocouples (6 in total are used) are placed in the tissue.

The user will be prompted to verify when this is done.

The Newport and the Ultrasound Transducer

The script will ask the user if the Newport turned on. When it is turned on and a key has been pressed to verify that it is on, the script will proceed.

The Newport will then move the transducer from one end of the tissue to the other. All this time, the ultrasound transducer is taking images of the tissue. The user can use this "scan" as an opportunity to verify that the transducer is placed right, the thermocouples are in the view of the image, etc.

For a view of the Terason user interface, see Figure 1. The upper left corner shows the Terason's ultrasound image viewer.

Step 2: Heating the Water Bath and Data Acquisition

The ThermoHaake will begin an iteration that heats the water bath to temperature values in the temperature set parameter. For each temperature in the set, the ThermoHaake will heat and circulate the water bath until the temperature is reached. For this part of the process, the ThermoHaake will set the target temperature to be half a degree larger than the true target temperature.

Figure 1

As the temperature of the water approaches target temperature, the system will repeat three steps. First, the system will acquire the temperature measurements from all the thermocouples and the ThermoHaake thermistor. Then the MATLAB script will plot these values against the time they were observed. An example of a plot can be seen in Figure 1 in the upper right corner. The red data represents measurements made in tissue and blue data represents measurements made in the water. Finally, the script will archive the temperature measurements by concatenating the values to a matrix. At the end of the experiment, these matrices will be saved.

This sequence of events repeats until a the target temperature is reached. When the true target temperature is reached, the ThermoHaake target temperature will be set to 10 degrees Celsius so that while circulation can continue in the water, heating cannot occur. This is to facilitate the tissue reaching a temperature equilibrium. At this point, the script enters a sub-iteration in which temperature measurement, plotting, and archiving still occurs as before. This will continue until a temperature equilibrium is reached.

Equilibrium is reached when the difference between the greatest thermocouple measurement and the the least thermocouple measurement is less than a equilibrium constant, which has a value determined by a header file parameter.

If an equilibrium is reached, then images are taken at different slices of the tissue. If an equilibrium is not reach in a certain time, determined by a header file parameter, then imaging occurs as though equilibrium had been reached. These images are then saved in the "ult" file in the experiment directory. The images are saved with the name "(experiment ID)_(temperature)_(slice number)".

After the images are taken, the archived matrices are saved in a mat-file named "(experiment ID)exp.mat".