Download winflux for your sonic from the links below

Full package for Gill Wind Master Pro
including: code, exe, setup file and readme

Executable and setup only for Gill Wind Master Pro

Full package for Gill R3
including: code, exe, setup file and readme

Executable and setup only for Gill R3

Full package for ATI
including: code, exe, setup file and readme

Executable and setup only for ATI

Documentation for the first distribution of WinFluxWMP.exe v1.0

The winflux.exe program is a Windows native version of Tilden Meyers' (NOAA/ATDD) eddy flux program. There are several versions of the program, winfluxWMP.exe, winfluxR3.exe, and winfluxATI.exe supporting Gill's Wind Master Pro and R3 sonics and the ATI sonic respectively. These three version will be refered to collectively as winflux.exe. winflux.exe was written by Joe Verfaillie of the Global Change Research Group at San Diego State University. Winflux.exe is intended to be freeware and may not be sold in any form. Part of this code may be in the USA public domain. Run this software at your own risk. The author takes no responsibility for correctness of data collected or harm done to your system. Please do not redistribute without all files listed below.

File List:

winfluxWMP.exe or winfluxR3.exe or winfluxATI.exe
winfluxWMP.cp or winfluxR3.cp or winfluxATI.cp
fluxr3.h
setup
readme.doc

The heart of Meyers' eddy flux program remains intact but a new serial interface and graphics interface have been added.

The new serial interface is multi-threaded and can use any COM port installed on your Windows machine. The connection speed and protocols are hard wired in the code as 9600, 8, none, 1. The serial port has a 512 byte buffer which can be changed in the code, but being multi-threaded the serial port thread should continually copy this buffer into available RAM even if the main thread is delayed. Gone is the full buffer graphic on the screen.

The code expects a binary message form the sonic every tenth of a second. Fixed in the code is a serial port time out value chosen to work with 10Hz data. In the fluxr3.h file, a variable called:

COMMTIMEOUTS gTimeoutsDefault = { 40, 0, 0, 0, 0 };

sets the time between the arrivals of two characters at the serial port to less than 40 milliseconds.

The new graphics interface allows the window to be resized. Most of the elements are the same as the DOS version except the wind rose is in the shape of a windsock and a digital display of the direction the wind is coming from and the wind speed has been added. A new counter has also been added. At start up a five digit number at the top of the screen should count up to 200 while the program is initialized. Afterwards the counter should show a constant number indicating the number of bytes received in each message sent from the sonic. If no data is being sent by the sonic or there is a problem with the serial port connection this counter will show "-RTO-" indicating a Read Time Out occurred.

Other changes include:

The exact bytes sent by the sonic are saved to the raw file. This allows flux to be calculated from the raw files at a later time or to be calculated several times using different averaging times. A program to reprocess raw files, ReFlux, is in development.

The output file paths in the setup file can be up to 120 bytes long. Flux files and raw files can now be directed to deeply nested folders. The flux files names are of the form

Path\p-pyyddd.flx

where p-p is the variable length prefix as entered in the setup file; yy is the two digit year; ddd is the three digit Julian day.

Raw file name can be of two forms selectable by appending an underscore to the end of the path name in the setup file:

Without underscore: path\p-pyydddhhmm.raw Or with underscore: path\p-p_yy_ddd_hhmm.raw

where hh is the two digit 24 hour, and mm is the two digit minute

The print option is no longer used in the set up file. It still needs to exist in the setup file it just isn't used.

Keyboard commands are no longer supported.

The digital values displayed at the right side of each trace do not include the calibrations as entered in the setup file.

Notes on the Code:

WinFlux was developed using Metrowerks CodeWarrior, however the code was written in accordance with Windows Standard Development Kit (SDK) and should compile with little or no changes on any Windows compliant compiler. WinFlux runs on Windows 98, NT and 2000, and with a small change noted in the code it can run on Windows 95.

Much of Meyers' original code remains unchanged though some sections have been commented out or removed.

Contact:

Joe Verfaillie josephv@sunstroke.sdsu.edu
Global Change Research Group
San Diego State University
Biology Dept. PS240
5500 Campanile Drive
San Diego, CA 92182-4614
TEL 619-594-1197
FAX 619-594-7831



GCRG Home | GCRG Annex Home |