# Reftek2ew Configuration Files

(last revised 26 May 2006)

This file contains examples of the reftek2ew configuratin file and descriptor file. This was upgraded to SCNL for EW v7.0.

EXAMPLE REFTEK2EW CONFIGURATION FILE

    # @(#)import_rtp.d	1.3 07/01/98
    # reftek2ew parameter file

    #  Basic Earthworm setup:

    MyModuleId         MOD_REFTEK2EW  # module id for this process
    WaveRing           WAVE_RING      # output ring for TRACEBUF messages
    RawRing            RAW_RING       # output ring for REFTEK messages
    HeartBeatInterval  30             # seconds between heartbeats

    # At least one of WaveRing and RtpRing must be defined.
    #
    # If you have selected a WaveRing to output TRACEBUF messages, then it
    # is necessary to define a mapping between the digitizer, stream, channel
    # information that is contained in each packet to the station, channel,
    # net, and pin number that is required by the TRACEBUF messages.  There
    # is no standard way to do this in vanilla Earthworm, therefore import_rtp
    # defines yet another parameter file.  If you don't specify this file,
    # then import_rtp issues a warning message on start up and then generates
    # its own names.  Station name is the unit id, channel name is built up
    # from the stream and channel values in the DT header (stream:chan), the
    # networm name is set to "RTP", and the pin number is set to -1.

    SCNLFile            reftek.scnl

    # Give the fully qualified host name, or the IP address of the server in
    # the usual decimal dot notation, followed by the port number for the RTP
    # service.  If you are running this on the same computer as the RTP server,
    # then specify "localhost" as the host name.

    Server             localhost    7000

    # The API allows you to request data from a single, specific, DAS or from
    # all DAS(es).  There is no provision in the API for requesting data from
    # a subset of the available digitizers.  If you want data from a single DAS,
    # give its unit id here, otherwise enter 0 to select all digitizers.

    DASid              0

    # You may filter the input based on packet type.  The following types are
    # supported: AD CD DS DT EH ET OM SC SH.  List the ones you want, or enter
    # ALL for all available.

    PktMask            ET DT SC

    # You may filter the DT packets based on stream.  List the stream id's you
    # want to see.  The stream codes here are the one-based values that are
    # used by people, not the zero-based values that are in the headers.

    StrMask            1 2 3 4 5 6 7 8

EXAMPLE REFTEK2EW DESCRIPTOR FILE

    modName  reftek2ew
    modId    MOD_REFTEK2EW
    instId   INST_MENLO
    #
    tsec: 60  page: 0  mail: 10
    #
    # Uncomment the "restartMe" line to enable automatic restart of this
    # process by statmgr/startstop.  statmgr will issue a TYPE_RESTART
    # message for this process_id if it declares the patient dead.
    #
    restartMe
    #
    err: 1  nerr: 1  tsec: 0  page: 0  mail: 20
    text: "RTP server OK."
    #
    err: 2  nerr: 1  tsec: 0  page: 0  mail: 20
    text: "RTP server not responding."
    #
    err: 3  nerr: 1  tsec: 0  page: 0  mail: 20
    text: "no data from RTP server."

Module Index | Reftek2ew Overview

Contact: