ac-s WETView Data Files ............................................................................................ 20
ac-s Raw Data ............................................................................................................... 22
WETView 7.0 User’s Guide (WETView) Revision F 9 February 2004 i
1. Introduction
WETView is a data acquisition and display program for acquiring and viewing the data
produced by WET Labs absorption and attenuation instruments. It runs on IBM PC
compatible computers. This document describes what is required to run WETView, how
to install it and how to use it.
2. System Requirements and Installation
It is recommended you have at least a 90 Mhz Pentium with at least 16 Mb of memory.
You will need about 3 Mb of disk space for the WETView program and related files. The
speed of the processor limits how much real-time graphing can be accomplished without
data loss. The size of memory limits the number of data points that can be plotted in one
run. WETView requires Windows 95 or newer operating system.
The WETView CD contains five files: SETUP.EXE, Wethsx.001, Wethsx.002,
*.dev and *.cal.
Once installed, the WETView directory contains the following files:
• setup.exe WETView installation executable
• uninst.dll File associated with uninstall utility
• uninst.exe The uninstall utility
• uninst.lrm File associated with uninstall utility
• Wethsx.001File associated with program file
• Wethsx.002File associated with program file
• WetView.exe WETView program
• WETVIEW.UIR WETView user interface resource file
• *.DEV Device configuration files (the actual name(s) of these files depend
upon the instrument(s) that you have purchased)
2.1 Installing the Software
1. Insert the CD.
2. Open the CD and double-click on the SETUP.EXE icon. SETUP will guide you
through the rest of the installation process.
3. Copy the *.dev and *.cal files to the hard disk. WETView initially looks for the
.dev file in the installation directory (default is c:\Program Files\wetlabs\wetview7).
WETView 7.0 User’s Guide (WETView) Revision F 9 February 2004 1
3. Quick Start
This section gives instructions for you to quickly get a single meter connected and
displaying data. fter installing the software:
1. Connect the meter to an appropriate power supply.
2. Connect the data line to one of the communication ports on your computer.
3. Turn the meter power supply on.
4. Start the WETView program.
5. Open a device configuration file by pressing the ^O to Open button at the top of the
screen (or by typing control-O). A dialog box will appear, allowing you to select a
file to open.
6. Select the COM port to which you attached the meter.
7. Press the F1 to Start button at the top of the screen.
8. After several seconds, stop the acquisition by pressing the F2 to Stop button.
9. Save the newly acquired data to a file. Name the file TMP.DAT.
10. Rescale the graph by selecting the All channels button in the lower right corner of
the screen. You can zoom in on one channel by press the colored button next to the
channel’s name on the right-hand side of the screen.
11. Open the data file you have just created by selecting File/Open .DAT file... from the
File menu. Choose the file named TMP.DAT.
12. View the data in the file by pressing the “F1 to Start” button at the top of the screen.
WETView 7.0 User’s Guide (WETView) Revision F 9 February 2004 1
4. Operation Overview
WETView acquires data from WET Labs’ ac meters and displays collected data.
WETView can perform these tasks simultaneously or independently.
4.1 Controlling WETView
You may use a mouse or keyboard commands to control WETView. The assigned
function keys are:
F1
Start acquiring data
F2
F3
F4
F5
F6
F7
F8
^O (control-O) Opens a device for data acquisition.
To operate controls on the screen using the keyboard, select the control by tabbing
until the desired control is highlighted, then change its value. The method for
changing a control’s value depends on the type of control:
• For a text or numeric field, type the desired value.
• For a radio button, type a space to toggle its value.
• For a button, type Return to activate the button.
Most dialog boxes have an OK and a Cancel button. The function key F1 will select
OK and the Esc key will cancel the dialog.
Stop acquiring data
Bring up Graph Options dialog
Bring up Binning Options dialog
Move data on graph to the left (or down)
Move data on graph to the right (or up)
Zoom graph in
Zoom graph out
4.2 How Data is Collected
As data is collected, it is averaged into bins. The average of each bin is stored and can be
written to a file after the acquisition is complete. The number of samples per bin is set by
the user via the Options/Channels/Binning… menu item. Once the data has been averaged
into bins, those bins can be further averaged into bins of bins for plotting.
Regardless of which channels are being displayed, all data acquired from an
instrument is stored and can be saved to a data file.
2 WETView 7.0 User’s Guide (WETView) Revision F 9 February 2004
4.3 Displaying Data
Data can be read directly from an instrument and displayed in real time, or it can be
read from a previously stored data file. You may configure the X and Y ranges for
graphs and select which traces are to be plotted. Collected data may be averaged into
bins for display. Thus, you can average acquired data into bins of 4 samples each, and
then display bins of 12 samples each by selecting a collection bin size of 4 and a
display bin size of 3.
4.4 Rescaling Graphs
When data is displayed in a graph, you can rescale the graph’s bounds to zoom in on
a single channel by clicking on the small button associated with the channel's label
(on the right side of the screen). Clicking on the All channels button will rescale the
graph so that all displayed channels will be shown.
In the lower right corner of the screen are four buttons for navigating around a
displayed graph. You can zoom in (magnify) a graph, or zoom out.
You can also move the bounds on the graph to shift the viewed data to the right or left
on the current graph (for strip charts, these move the graph up and down).
You can change other characteristics of a graph by selecting Options/Graph (or,
equivalently, the Graph/Options menu item).
WETView 7.0 User’s Guide (WETView) Revision F 9 February 2004 3
5. Collecting, Graphing, and Saving Data
5.1 WETView Menus
New
Open Device
Open .DAT File
Save as
Configure
Quit
Absorption vs.
Depth
Absorption vs.
Time
Time Strip Chart
Absorption vs.
Temperature
Spectrograph
(Scatter plot)
Spectrograph (bar
chart)
Open Graph...
Clears the current graph and disconnects
from the current instrument.
Chooses which type of device to collect
data from.
Opens a previously saved data file for
display.
Saves the most recently acquired data into
a data file.
Allows you to edit the configuration for
an instrument, including the calibration
constants.
Quits the WETView program.
Selects the vertical graph of absorption
versus depth.
Selects the vertical graph of absorption
versus time.
Selects the horizontal strip chart for
display (absorption vs. time).
Selects the vertical graph of absorption
versus temperature.
Selects the scatter plot of
absorption/attenuation vs. wavelength.
Selects the spectrum display of
absorption/attenuation vs. wavelength.
Opens a graph file for viewing.
Save Graph...
Print Graph...
Options...(F3)
Saves the current graph to a file.
Prints the current graph to a printer.
Allows you to configure the scaling of
graphical output.
Graph…
F3
Allows you to configure the scaling of
graphical output.
Channels/
Binning...
F4
Allows you to set the bin size for
sampling and the traces to display.
4 WETView 7.0 User’s Guide (WETView) Revision F 9 February 2004
5.2 Opening a Device
Select File/Open Device… to open an instrument for data collection. (You are
opening a device configuration file that describes the device to be used.)
Once you have selected an instrument, you will be asked to identify the source of the
data stream. This can be either a communication port that the device is connected to
or a binary file. (A binary file is created by using a communications program to read a
device’s data from a serial port and write it directly to a file in binary format.) Choose
COM1, COM2, or .RAW File.
Once you have selected the appropriate port(s), WETView attempts to synchronize
with the device on that port. If there is any error in doing this, it will be reported
immediately. Possible errors are:
Port timed
out
Bad format
from source
Once WETView connects to the instrument, it checks to see if the serial number of
the instrument matches the serial number given in the configuration file. If it doesn't
match, you are warned, but can elect to continue.
If the serial numbers do not match, the calibration information stored in the
configuration file probably will not be correct for the instrument, so collected data
WETView timed out trying to read data from the selected port.
Was the correct port selected? Are cables and connections correct?
WETView did receive data from the selected port, but it did not
recognize the data stream. Is the correct device connected to the
selected port? Is it turned on?
Caution
is suspect.
! Software Error: Current version may always display this warning regardless of matching
serial numbers.
5.3 Opening and Saving a Data File
Select File/Open .DAT File… to open a WETView data file for graphing. Choose
the file you want to open. Once the file is open, select Start from the Acquire menu
(or type F1). Possible errors in opening the file:
File not found
Bad file format
WETView 7.0 User’s Guide (WETView) Revision F 9 February 2004 5
The file you named does not exist. Did you type the name
correctly?
WETView did not recognize the format of the file. Did you
select a data file that was created by WETView?
Strange error
opening file
WETView ran into an unanticipated error. Did you select a data
file that was created by WETView?
Select File/Save as... to save the most recently acquired data to a text file. By
convention, data files have the extension .DAT, though this is not required.
As WETView collects data, it writes that data to a temporary file called
WETVIEW.TMP. When you request to save the data, the file is renamed to the name
you specify. If you quit WETView without saving the data, the WETVIEW.TMP file
is not deleted, so you can manually rename it if you wish.
Note
Because the temporary file, WETVIEW.TMP, is renamed when you save it, the file
cannot be saved to a disk other than the one that contains the current directory.
5.4 Collecting Data
Press the F1 to Start button to begin acquiring data from the currently opened
device. This item is highlighted only if you have a device open. The function key F1
works as well. As data is acquired, the traces you have selected (via the Options/ Channels/Binning menu) are graphed. Graphing the data points uses memory and
for long collection runs WETView may exhaust all available memory (this is not true
for the Strip Chart graph). If WETView runs out of memory, it erases the graph and
begins graphing from where it left off. All collected data is saved in a file, whether or
not it was erased from the graph.
5.4.1 Changing the Data Collection Options
Select Options/Channels/Binning to select which traces to display and to set the
collection and display bin sizes.
5.4.2 Ending Data Collection, Exiting WETView
Once acquisition begins, an F2 to Stop button is displayed near the top of the
screen. Selecting that button with the mouse, or pressing the F2 key stops data
acquisition. Select Quit to quit the WETView program.
5.5 Graphing Data
Select Graph/Open Graph... to open a previously saved graph file. By convention,
WETView expects graph files to have a .GPH extension.
Select Graph/Save Graph.… to save the current graph to a file. The graph may be
opened later and viewed, rescaled, and printed.
Select Graph/Print Graph.… to print the currently displayed graph.
6 WETView 7.0 User’s Guide (WETView) Revision F 9 February 2004
5.5.1 Selecting the Graph to Display
WETView provides four types of graphs:
1. A vertical X-Y graph of absorption versus depth
2. A vertical X-Y graph of absorption versus time
3. A horizontal strip chart of absorption versus time
4. A vertical graph of absorption versus temperature.
There are trade-offs to be considered when choosing which display to use.
The X-Y graphs accurately plot either time and absorption or depth and
absorption, whereas the strip chart accurately plots absorption, but uses a constant
time base. However, the strip chart scrolls continuously as data is collected, so
you can have detailed view of the most recently received data, whereas the X-Y
graph is static. When the data runs off the graph, it is not visible until you stop
data acquisition and rescale the graph. In either case, all data acquired is logged to
the data file.
The absorption versus temperature graph is used for temperature calibration. The
temperature reported is the temperature internal to the instrument, not the ambient
temperature. Also, since the temperature is reported once for each set of ten data
lines, all ten data lines will be plotted at the same temperature. We recommend
setting the collection bin size to a multiple of 10.
5.5.2 Changing Graph Options
Select Graph/Options... to change the appearance of the currently displayed
graph. For X-Y graphs, you may set the X and Y ranges and the number of
divisions for each axis. For strip charts, you may set the Y range and the speed
that the chart scrolls.
WETView 7.0 User’s Guide (WETView) Revision F 9 February 2004 7
6. Configuration
The ac-9 measures the absorption and attenuation of 9 different wavelengths of light; the
ac-s measures from 80–90. Configuration is specific to each type of device. Each of the
measured quantities has a calibration offset added to it so that the resulting number is the
difference between a clean water measurement and the measurement in the field. You can
manually set the value of this offset for each channel; however, determining the correct
value to use is not trivial.
Caution
We recommend you change only the instrument description and the color used
for plotting it. Changing the baud rate will most likely cause WETView to be
unable to communicate with the instrument. Changing the calibration constants
will affect the accuracy of your results.
Usually, a “clean water calibration run” is performed. Chemically pure water is run
through the instrument and the values for absorption and attenuation are averaged over a
number of samples. These values are then used as the calibration offsets.
You can change the following settings for the ac-9 meter:
• calibration offsets for absorption measurements
• calibration offset for depth measurement
You can change the following settings for the ac-s meter:
• calibration offsets for absorption/attenuation measurements
To change an instrument’s calibration, a new device file must be collected. The steps
of this process are outlined below.
1. Ensure the instrument is properly connected to a power supply and host computer,
and that WETView is properly loaded and operational. Open the Configuration
screen by selecting File/Configure…. Choose a device file. The window below
(either ac-9 or ac-s) will appear.
8 WETView 7.0 User’s Guide (WETView) Revision F 9 February 2004
ac-9 configuration screen
ac-s configuration screen
WETView 7.0 User’s Guide (WETView) Revision F 9 February 2004 9
2. The lower left-hand corner of the window has a Channel Calibration box with
control buttons for Zero All and Auto Cal.
• The Zero All button sets all of the calibration offsets to 0.0 so you can collect
the raw (uncorrected) values from the meter. Note that these values are always
temperature-compensated.
• The Auto Cal control collects and averages the new offsets for a device file.
Note the option for number of samples to average. Select the number of
individual samples you wish to average by using this control. The default is 10
samples.
3. Once you have selected the number of samples over which to average, you then
can engage the Auto Cal control. A temporary pop-up window will notify you as
the calibration takes place. After the operation is complete, exit the Configuration
dialog box by pressing OK in the lower right hand corner.
4. When you exit you will be prompted as to whether you want to save the new
offset values.
Caution
Unless you deliberately save a device file the offsets you have collected
will not be permanently stored.
5. You may write over an older device file if you choose, but the program will ask
you if you are sure you want to do this. Otherwise you may write to a new file.
6. Before you can use the new values, reload the newly made device file using
File/Open Device.
10 WETView 7.0 User’s Guide (WETView) Revision F 9 February 2004
Appendix A—ac-9 Meter Files
ac-9 Configuration File
Configuration files (with file extension .DEV) give calibration and other information
specific to a particular unit. These files are tab-delimited text files and have the
following format:
Line 1 Device name.
Line 2 Serial number: the serial number of the device that was used to collect the
data.
Line 3 Version number of the following structure. This should be “2.”
Line 4 Reserved for future use.
Line 5 Calibrations for depth meter: there are two values, the first is an offset and
the second is a multiplier.
Line 6 RS-232 baud rate that the instrument uses
Line 7 Optical path length through water (in meters).
Line 8 Number of temperature compensation bins.
Line 9 Several values (the count is given in the preceding line); each value is the
average temperature of the temperature bin.
Line 10–27 Each line describes one channel of the instrument; the first three fields are:
label for identifying the channel
color for plotting
clean water calibration constant (offset)
The rest of the line contains temperature compensation values that
correspond to the temperature bins given in the previous line.
Line 28 Reserved for future use
Line 29 Extra capabilities mask. This is a list of capabilities that the meter may have
in addition to the standard product. Currently, only one such capability
exists: an external temperature sensor. If the first number on this line is non-
zero, the meter supports such a sensor.
ac-9 WETView Data Files
WETView saves data files in tab-delimited format. The file format of WETView files
is described below.
Line 1: Header line. Identifies the version of the program that created the file, and the
time and date of creation.
Lines 2–30: Exactly the same format as the configuration file. These lines contain the
calibration information that was used while collecting the data.
Line 31: Collection bin size. The number of samples that were averaged into each bin
during collection.
Data lines
The rest of the file contains lines of data values. Each line of data starts with a zero-
based time stamp. Times are given in milliseconds. The rest of the fields on the line
WETView 7.0 User’s Guide (WETView) Revision F 9 February 2004 11
are the data from the device. The data is given as absorption values, after
referencing, calibration and temperature correction.
Reference lines
A reference line is a data line that has some extra information appended to it.
1. The first number after the data values is the temperature (deg C).
2. The second number is the sample rate (samples per second).
3. The third number is the depth (in meters, if the meter supports depth).
4. The fourth number is the external temperature, if the meter supports it.
5. The rest of the line contains channel reference values.
The fields for the reference line for the ac-9 are:
field # contents
1 time in milliseconds
2 absorption for 650 nm
3 absorption for 560 nm
4 absorption for 532 nm
5 attenuation for 712 nm
6 attenuation for 676 nm
7 attenuation for 660 nm
8 absorption for 488 nm
9 absorption for 456 nm
10 absorption for 412 nm
11 attenuation for 650 nm
12 attenuation for 560 nm
WETView 7.0 User’s Guide (WETView) Revision F 9 February 2004 13
13 attenuation for 532 nm
14 absorption for 712 nm
15 absorption for 676 nm
16 absorption for 660 nm
17 attenuation for 488 nm
18 attenuation for 456 nm
19 attenuation for 412 nm
20 temperature (oC)
21 sample rate (samples per second)
22 depth (meters)
23 reserved
24 reference for a650
25 reference for a560
26 reference for a532
27 reference for c712
28 reference for c676
29 reference for c660
30 reference for a488
31 reference for a456
32 reference for a412
33 reference for c650
34 reference for c560
35 reference for c532
36 reference for a712
37 reference for a676
38 reference for a660
39 reference for c488
40 reference for c456
41 reference for c412
The information in a data line is exactly the same as the first 19 fields of the reference line.
ac-9 Raw Data
Below is one record of raw data that was captured from the device. It has been
converted to hexadecimal, formatted and commented. Note that the two-byte and fourbyte values are byte-reversed. That is, the bytes within a word are read from right to
left. This reflects the way the Intel 386 and 486 processors store values in memory.
00FF00FF registration word
7A02 record length, from this wordthrough checksum
21010000 serial number
0000 status
DB13 sample rate
1600 depth
34FF external temperature
6410 171E 89 2D20 0F 0319 1B … first sample, time and data
7510 171E CB 2C20 EE 0119 A3 … second sample, time and data
8510 161E 84 2E20 0A 0119 F2 … o
9510 131E F1 2920 DE FE18 DF … o
A510 151E 9B 2B20 BC 0119 51 … o
B510 151E 7A 2B20 BA 0119 9A …
14 WETView 7.0 User’s Guide (WETView) Revision F 9 February 2004
F610 141E 05 2A20 5E 0019 35 … tenth sample, time and data
7804 C8 B604 C0 A603 66 … 3 references and temperature
9701 temperature
65D00000 checksum (FF00FF00 through refs)
00000000 padding (4 null bytes)
Registration word = 00FF00FF hex
Record length = 7A02 hex = 634 bytes
Serial number = 00000121
This is the thirty-third ac-9 meter produced. Production numbers
begin with 0100 hex.
Status = 0000 Zero indicates normal operation.
Sample rate = 14F9 hex = 5083
This is a count of the time used to take one sample. It is scaled by
0.0000316 to match the hardware’s clock rate, then inverted to give
This word is ignored for this meter because the meter does not have
an external temperature probe in it. This is determined by the last line
of the configuration file: the value is zero.
For the purpose of this discussion, we skip to the third-from-last line of the data record.
This is the reference line, and values here will be used in the computation of the
absorption values for each channel.
WETView 7.0 User’s Guide (WETView) Revision F 9 February 2004 15
(
−
Reference a610
Temperature = 0F01 hex = 271
Absorption 610 = 171E 89 hex = 8986135
= 7804 C8 hex = 13108344
This is the reference value for the first channel (ab610). This is a 24-bit
value indicating the output from an analog to digital converter. This
represents a fraction of the input voltage. To convert from counts to this
fraction, the value is divided by 2
13108344/16777216 = 0.7813
The temperature is given as a reading from a thermistor. The manufacturer
of the thermistor provides a table correlating the reading (counts) to
temperature. That table fits the polynomial equation given above. Using
407 counts, we get: 10.61831
+ 0.045113 * 271
+ -4891.32 * 1/271
+ 208130.2 * 1/271
2
+ 1171473 * 1/2713 = 7.69 degrees C
This is the signal value for the first channel (a610). This 24-bit value is
converted to raw voltage in the same manner as for reference values.
8986135 / 16777216 = 0.5356 VDC
Raw absorption is computed from the signal and reference values as
described above:
E
sig
−=ln
a
raw
E
ref
Z
The device’s optical path length is read from the configuration file.
0.5356
ln
−
0.7813
a
raw
=
25.0
24
(16777216).
=
1-
meter 1.5103
The temperature correction is then applied using the temperature from the
reference line and the channel’s correction table from the configuration file.
The approximate correction value is linearly interpolated from the table.
First, the correct temperature bin is determined by finding the two bin
temperatures, T
the values, ∆
and T1, that bracket the current temperature. Then, using
0
Tn
and ∆
+∆=∆
, from the table,
Tn+1
)
TT
0
()
()
*
TT
−
01
∆−∆
+1
TnTnTnT
where,
∆
=compensation constant
T
T=current temperature, 7.69
=first bin temperature, 5.5233
T
0
16 WETView 7.0 User’s Guide (WETView) Revision F 9 February 2004
(
−
∆
−
+
′
T1=second bin temperature, 8.4553
∆
=first value, 0.1411
Tn
∆
=second value, 0.1028
Tn+1
Using these values,
)
1411.0=−
T
Subtracting this from the raw absorption,
′
=
=
Finally, adding in the calibration offset for a610,
+=∆
()
aa
1.3976
Traw
0.1127 1.5103
−=
5233.569.7
−
5233.54553.8
()
=Caa
0.1127m 1411.01028.0*
1-
+=
9.0218
=
Checksum = 65D00000 = 53349
The checksum is the sum of all the bytes of the record, beginning with the
registration word and ending with the temperature. For this record, the
checksum is 53349. This is used to verify that the record was received
correctly by WETView.
Padding
= 00000000
These four null bytes separate records. They are ignored. The advantage of
having them is that if a character is lost in transmission, WETView will
read one byte past the end of the corrupted record. If there were no padding
bytes, the first byte of the next record would have been read, corrupting
that record as well. With the padding bytes, however, if a character is lost
in transmission, then WETView will read one byte past the end of the
record, which will be a padding byte, and it can be safely discarded. The
next record will be read correctly.
7.62423976.1
WETView 7.0 User’s Guide (WETView) Revision F 9 February 2004 17
Appendix B—ac-s Meter Files
ac-s Configuration File
ac-s configuration files (with file extension .DEV) give calibration and other information
specific to a particular meter. These files are tab-delimited text files and have the following
format:
Line 1 Device name.
Line 2 Serial number. The serial number of the device that was used to collect the data.
Line 3 Version number of the following structure. This should be “3” or greater.
Line 4 Reserved for future use.
Line 5 Calibrations for depth meter: there are two values, the first is an offset and the
second is a multiplier.
Line 6 Serial port baud rate the instrument uses.
Line 7 Optical path length through water (in meters).
Line 8 Number of output wavelengths.
Line 9 Number of temperature compensation bins.
Line 10 Several values (the count is given in the preceding line); each value is the
average temperature for each temperature bin.
Lines
11–varies
(dependent on
value in line 8)
Varies
(dependent on
value in line 8)
Each line describes one wavelength pair of the instrument; the first five fields
are:
label for identifying the c wavelength
label for identifying the a wavelength
color for plotting within WETView
clean water calibration constant for attenuation, c
clean water calibration constant for absorption, a
The rest of the line contains temperature compensation values that correspond
to the temperature bins given in the previous line. The first n values are for c,
the next n values are for a, where n is the number of temperature bins.
Reserved for future use.
18 WETView 7.0 User’s Guide (WETView) Revision F 9 February 2004
Record length of full packet (not including chksum) = 720
Packet Type 03 and above designates an ac-s meter
unused by ac-s
meter type—53 indicates an ac-s
serial number
sample to sample delta time in 25 µs counts (0.49985 sec)
Reserved
Reserved
raw external temp counts = 26.82 °C
raw internal temp counts = 27.93 °C
Reserved
Reserved
time in milliseconds since power up (465666 = 7.761 mins)
Reserved
Number of output wavelengths = 80–90 decimal (86 in this example)
raw cref1 counts
raw aref1 counts
raw csig1 counts
raw asig1 counts
raw cref2 counts
raw cref86 counts
raw aref86 counts
raw csig86 counts
raw asig86 counts
Checksum
pad byte
22 WETView 7.0 User’s Guide (WETView) Revision F 9 February 2004
Registration
= FF00FF00 hex
word
Record
= 02D0 hex = 720 bytes
length
Packet type = 04
Reserved for future use.
Reserved = 01
Meter Type = 53
Serial
Number
= 000002
This is the second ac-s meter produced (production numbers begin with
0000 hex).
Status = 4E1A Sample to sample delta time in 25 us counts (0.49985 sec)
Reserved <2 undefined bytes>
Reserved for future use.
Reserved <2 undefined bytes>
Reserved for future use.
External
Temperature
= 7AE4 hex = 31460
The external temperature is derived from a voltage drop across a
thermistor. The temperature is calculated from a polynomial to convert
counts to temperature.
Internal
Temperature
The polynomial to convert counts to temperature is:
23
×+××
d + counts c counts b + countsa =y
where a = -7.1023317 E-13, b = 7.09341920 E-8, c = -3.87065673 E-3,
and d = 95.8241397
which yields an external temperature of 22.14ºC
= B9D7 hex = 47575
The internal temperature is derived from a voltage drop across a
thermistor. The temperature is calculated from an equation to convert the
thermistor resistance to temperature. The equation for converting the raw
A/D counts to volts is:
volts = (5 × counts / 65535) which yields 3.6297
The volts are then converted to resistance using the equation:
resistance = 10,000×volts/(4.516 – volts) which yields 40,956.7 ohms
The equation to convert resistance to temperature is:
WETView 7.0 User’s Guide (WETView) Revision F 9 February 2004 23
=
temp
1
3
×+×+
))(ln()ln(
rescresba
15.273
−
where a = 0.00093135, b = 0.000221631, and c = 0.000000125741
which yields
=
T
1
()
40956ln 40956 ln
++
cba
Cº 91.17 15.2733=−
24 WETView 7.0 User’s Guide (WETView) Revision F 9 February 2004
Reserved <4 undefined bytes>
−
Reserved for future use.
Time since
power up
Number of
output
wavelengths
Data,
wavelength 1
= 0071b02 hex = 465666ms = 7.761 minutes
=56 hex = 86
= 0405 0363 04f4 0310 hex = 1029 867 1268 784
This is the data read for the first wavelength: c reference, a reference c,
and a channels, respectively. Raw absorption is computed from the signal
and reference values as described above:
E
sig
−=ln
a
raw
Which yields a
c
= -ln(1268/1029)/0.25 = -0.835 m-1.
raw
E
ref
Z
= –ln(784/867)/0.25 = 0.402 m-1 and
raw
The channel's calibration constant and the device's optical path length
are read from the configuration file.
The temperature correction is then applied using the internal temperature
and the channel's correction table from the configuration file. The
approximate correction value is linearly interpolated from the table.
First, the correct temperature bin is determined by finding the two bin
temperatures, T
using the values, ∆
and T1, that bracket the current temperature. Then,
WETView 7.0 User’s Guide (WETView) Revision F 9 February 2004 25
Subtracting this from the raw absorption,
a’ = 0.402 – 0.012 = 0.039
Finally, adding in the calibration offset for a397.5,
a = a’ + C = 0.039 -0.431 = -0.392
Checksum = 2243 = 8771
The checksum is the sum of all the bytes of the record, beginning with
the registration word and ending with the byte just before this checksum.
For this record, the checksum is 8771. This is used to verify that the
record was received correctly by WETView.
26 WETView 7.0 User’s Guide (WETView) Revision F 9 February 2004
Revision History
Revision Date Revision Description Originator
A 02/08/00Begin revision control H. Van Zee
B 04/12/00Correct calibration offset for ac-9 (DCR 20) C. de Lespinasse
C 05/23/00Correct data and device files for HiStar (DCR 31) D. Hankins, H. Van Zee
D 07/12/00Correct equation on temperature correction
algorithm (DCR 47)
E 4/12/01 Delete references to three-spectrometer HiStar
(DCR 102)
E1 2/4/04 Update to include ac-s, delete HiStar references B. Rhoades
F 2/9/04 Approved revisons in E1 (DCR 359) D. Hankins, B. Rhoades
C. de Lespinasse
D. Hankins
WETView 7.0 User’s Guide (WETView) Revision F 9 February 2004
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.