Earthworm Modules:
PsnAdSend Overview

Updated April 14 2011 by Larry Cochrane

PsnAdSend is a digitizing program similar to ADSend for Earthworm. This module runs under Windows (Win2K or XP) or Linux/Unix and produces demultiplexed data to one of the transport data rings. This program was designed to work with the Webtronics 16-Bit 8-Channel PSN-ADC-SERIAL serial output or PSN-ADC-USB Analog to Digital board or the RLL Instruments VolksMeter sensor. With the PSN-ADC-SERIAL or PSN-ADC-USB board the user can  record 1 to 8 channels at 5, 10, 50, 100 or 200 SPS. The VolksMeter sensor can record one or two channels at 5, 10, 20, 25, 40, 50 and 80 SPS. To use this module with the PSN-ADC-SERIAL board you will need one free RS-232 Comm port. If the system only has USB ports, a USB to RS-232 converter can be used between the computer and the ADC board. We recommend a USB to RS-232 adapter based on the FTDI USB chip

Windows Module:

This module was built using Microsoft Visual C++ 8.0. The program (PsnAdSend.exe) has been tested using Earthworm versions 7.2. The PsnAdSend program uses the PSNADBoard.dll to interface between the program and the ADC board. See this page for more information on the DLL. The PSNADBoard.dll file must be in the Earthworm /bin directory before you can use PsnAdSend.exe program.

Linux/Unix Module:

This module was built using gcc version 4.1.2 using OpenSUSE 10.2. The program (psnadsend) has been tested using Earthworm versions 7.2. The Linux/Unix PsnAdSend uses the library version of PSNADBoard.dll. See this page for more information. The C++ code used to make the libpsn32.a library was created using g++ version 4.1.2. The C++ and header files are located in the ./PsnAdSend/psnlib/ subdirectory. If the user needs to recompile the library, use "make -f makefile.ux" to rebuild the library and "make -f makefile.ux clean" to delete any .o files and the psnadsend executable.   

Data Time Stamping:

The PSN-ADC-SERIAL or PSN-ADC-USB board and the PSNADBoard.dll can use various methods to time stamp the data. The most accurate timing (< 4 milliseconds) can be achieved using a GPS receiver connected to the ADC board. Currently the board supports the Garmin GPS 16, Garmin GPS 18 Sensors or the Motorola ONCORE receiver series.  WWV, with the optional WWV circuitry on the ADC board, can also be used here in the United States. This option requires a Short-wave receiver tuned to one of the WWV transmitter stations at 2.5, 5, 10 or 15 Mhz.  Using this method as a time reference, the user can achieve an accuracy of 20 to 30 milliseconds. The computer's time can also be used to time stamp the data. If the system is running a program like the NT port of NTP, the user can expect an overall accuracy of around +-50 milliseconds.

See the link below for a list of commands used to control the PsnAdSend module.

PsnAdSend Commands