# PsnAdSend Version 2.x Configuration File for Earthworm 7.x

Updated: October 3, 2012

Below is a typical PsnAdSend.d configuration file for PsnAdSend Version 2.x. This file should be located in the \earthworm\run_working\params directory. The ModuleId must be added to the earthworm.d file also located in this directory.

    #                    CONFIGURATION FILE FOR PSNADSEND VERSION 2.x
    #                    --------------------------------------------
    #
    ModuleId         MOD_PSNADSEND_A	# Module id of this instance of PsnAdSend
    OutRing          WAVE_RING      	# Transport ring to write waveforms to

    # For Windows use port number
    CommPortTcpHost  3              	# Comm Port Number for Windows
    #
    # For Linux use port device string
    #CommPortTcpHost /dev/ttyUSB0           # Comm Port String for Linux
    #
    # For TCP/IP Connection to device us IP address or host string
    #CommPortTcpHost 192.168.1.24           # This is the same for Linux and Windows
    TcpPort		8011			# TCP Port Number to use when connecting to the RS-232 host adapter
    #
    TcpMode		 0			# Set to 1 for TCP/IP connection to host server
    #
    #
    PortSpeed        38400          	# Comm Port Baud Rate
    HeartbeatInt     30             	# Heartbeat interval in seconds
    #
    ConsoleDisplay   0                      # Windows Only; if 1 use console functions to redisplay status
    ControlCExit     1	                # If 1 exit on sigint control-c event
    RefreshTime      20	                # Auto Status Display Refresh Time, 0 = no status display
    CheckStdin       0                      # Windows Only; if 1 check for user input
    #
    #                        ADC CONFIGURATION
    ChanRate         200            	# Sampling rate in samples/second
    AdcDataSize      4                      # ADC Data trace buffer size. Can be 2 or 4 bytes
    #
    #                         TIMING INFORMATION
    NoDataTimeout    60			# No Data Timeout in seconds
    UpdateSysClock   0              	# 1 = PC time updated with AD board time
    HighToLowPPS     0              	# 1 = PPS Signal direction is High to Low
    NoPPSLedStatus   0			# 1 = Disable 1PPS LED blinking
    LogMessages      1              	# 1 = Log messages from DLL & ADC to log file
    TimeOffset       0              	# Time Reference offset in milliseconds
    NoSendBadTime    0			# 1 = Only send packets with good GPS lock
    #
    #
    # Time Reference Types:
    # 'PC' = Use PC Time, 'GARMIN' = Garmin GPS 16 or 18, 'MOT_NMEA' = Motorola ONCORE NMEA,
    # 'MOT_BIN' = Motorola ONCORE Binary, 'WWV' = WWV (must have WWV option on the ADC board )
    # or 'SKG' = Sure Electronics SKG GPS Board
    TimeRefType      GARMIN			# One of the types above
    #
    TimeFileName     c:\tmp\PsnSendTime	# Path and root name of the time info file
    #TimeFileName     /tmp/PsnSendTime      # use something like this for Linux
    #
    # Filter params for Low-Pass and High-Pass Filters; Channel Number, Type, Cutoff Freq, Poles
    # Type can be one of the following; LP = Low-Pass or HP = High-Pass
    # Cutoff is the filter 3 db point in Hz
    # Poles is the filter poles. This should be a even number between 2 and 16
    #
    #       Ch#  Type Cutoff Poles
    #       ---  ---- ------ -----
    #Filter   1    LP    20     2
    #Filter   1    HP    1      2
    #
    #Filter   2    LP    10     4
    #Filter   2    HP    1      4

    # Filter params for inverse (period extending) filter;
    # Sensor Frequency is in Hz
    # Sensor Q is the Q or damping factor of the sensor
    # FilterFreq sets the low end frequency in Hz of the period extending filter
    # FilterQ is the Q of the single pole FilterFreq
    #
    #     Ch#  Type SensorFreq SensorQ FilterFreq FilterQ
    #Filter 1   INV      4.5      .707      .1      .707
    #

    #    SCNL VALUES FOR EACH ADC CHANNEL
    #
    # The number of Chan directives below will set how many channels to record from the ADC Board
    # Stat = Station ID; can be can be 1 to 5 chars,
    # Comp = Component Name; should be 3 chars,
    # Net  = Network ID; should be 2 chars
    # Loc  = Location; should be 2 chars
    # Bits = How many ADC bits to use from the ADC board for this channel
    # Gain = ADC channel Gain. Only used by 24 Bit converter boards
    # FilterDly = Low-Pass Filter Delay in Milliseconds
    # Invert = (Y)es will invert the ADC channel data
    # Send = (Y)es will send the channel data to the Earthworm ring
    # DcOffset = Adds a DC Offset to the incoming data; Integer number in ADC counts
    #
    #     Stat  Comp Net Loc Bits Gain FltrDly Invert Send DcOffset
    #     ----- ---- --- --- ---- ---- ------- ------ ---- --------
    Chan  CH1   BHZ  PN  01   16   1      0      N      Y     0
    Chan  CH2   BHN  PN  02   16   1      0      N      Y     0
    Chan  CH3   BHE  PN  03   16   1      0      N      Y     0
    Chan  CH4   SHE  PN  04   16   1      0      N      Y     0
    Chan  CH5   SHZ  PN  05   16   1      0      N      Y     0
    Chan  CH6   SHN  PN  06   16   1      0      N      Y     0
    Chan  CH7   AHE  PN  07   16   1      0      N      Y     0
    Chan  CH8   AHZ  PN  08   16   1      0      N      Y     0

    # The number of AddChan directives below will set how many additional channels to derive from the
    # real ADC channels above. This is the same information above except the Gain parameter has been removed
    # and AdcCh is one of the enumerated channels above.
    #
    #       AdcCh Stat  Comp Net Loc Bits FltrDly Invert Send DcOffset
    #       ----- ----- ---- --- --- ---- ------- ------ ---- --------
    #AddChan  2    CH9   BHN  PN  01  16      0      N     Y     0
    #AddChan  7    CH10  AHE  PN  01  16      0      N     Y     0
    # end of file
    #

#### [ Top ] [ Overview ]