Simulator Status - Config Display

When the Config radio button is pressed, the status information displays the entire internal configuration of the sonar system. The display is updated when the Update button is pressed.

This information is helpful for verifying topside behavior. After a message is sent, it can be verified that the settings were correctly modified within the sonar program on this display.

Also included are many diagnostic values for internal testing purposes

Note that not all parameters represent fully functional system features. For example, data storage is not currently implemented.

 

 

The following are the major headings on the Config Display:

Low Rate IO: Low rate analog IO data values.

Status: Overall System Status.

Main: Main system information.

DSP #N: Summary information about all DSP Cards.

SUB #N: Information about each subsystem

SUB N IO M: Information about each sonar data IO channel.

 

Low Rate IO

This area displays the low rate IO analog data which includes temperature sensors. Used in a bottle system for health monitoring.

Status

This area displays the values that would be returned from a SONAR_MESSAGE_SYSTEM_STATUS message.

128Buffers: This value indicates the total number of 128 sample buffers of data that have been acquired from all sources to date. When pinging for any subsystem is enabled this number should be incrementing over time.

Total: This value indicates the total number of errors detected to date.

LastErrors: The error codes from the most recent 10 errors. The currently defined error codes are:

Error Number

Description

0

No Error

1

Command Message Failed

2

Command Message Failed Data Size Differs from Expected Size

3

Subsystem Not Defined

4

Channel Not Defined

5

Unknown Message

6

Pulse File Load Failed

7

Reserved

8

Reserved

9

Reserved

10

Reserved

 

Main

This area summarizes some overall internal variables of the Sonar System.

Priority: Indicates the internal priority class of the sonar program, where 0 is normal, 1 is high, and 2 is time-critical.

Simulator: Indicates the behavior of the simulator data. A value of 2 will loop back the outgoing pulse with a random time delay back into the input. A value of 1 will send a periodic step wedge into the input. Since TVG and pulse compression is performed on the data by default, the data output to the topside is not identical to this. The option DspSimulator in the Sonar.Ini file sets this value.

PulseDir: Location where pulse files are loaded from.

DataQOF: Counter which is incremented if the main processor cannot keep up with the data coming from all DSP cards.

FinalDataOF: Counter which is incremented if the network transmission cannot keep up with the data to be delivered to the topside. A topside can cause this value to increment by connecting to the sonar data socket (1601) but not reading data fast enough from the socket. This overflow can also be caused by a telemetry link which is too slow.

DSPPoll30MS: Counter which is incremented if the internal thread which handles DSP card data is not scheduled withing 30 ms of its requested interval. This is not an erroneous condition and is used to tune the internal buffer sizes for data acquisition.

TimeDelta: Indicates the correction factor in 0.5 ms of the last time sync message from the topside (SONAR_MESSAGE_TIME_DELTA). The LSB of this value is a counter and toggles between 0 and 1 to indicate new message arrivals. Therefore, subsequent messages from the topside will cause this value to change between even and odd numbers.

Net Cmd On: Counter which is incremented each time that the command socket (1600) is connected to or disconnected. When this value is odd, a topside has successfully connected to the sonar system.

Net Cmd Rcv: Counter which is incremented each time a message is received from the topside on the command socket.

Net Cmd Xmt: Counter which is incremented each time a message is sent back to the topside on the command socket.

Net Data On: Counter which is incremented each time that the data socket (1601) is connected to or disconnected. When this value is odd, a topside has successfully connected to the sonar system.

Net Data Rcv: Counter which is incremented each time that a message is received from the topside on the data socket.

Net Data Xmt: Counter which is incremented each time that a message COULD HAVE BEEN sent to the topside on the data socket. If the topside is connected then these messages are sent to the topside. Otherwise the data is discarded.

 

DSP #N

This area lists the internal variables of all DSP cards in the system. The first card is 0.

DSPOF: Overflow count for internal data acquisition buffers within the DSP card. When this number increases over time, the DSP Card cannot keep up with its processing and data acquisition requirements.

PCI OF: Overflow count for data transfers between the DSP Card and the main processor (which occurs over the PCI Bus). When this number increases over time, the main processor cannot keep up with data

PCI Cnt: Counter which indicates the total internal packets sent from this DSP card to the main processor.

BigBuf: Indicates the size of the data buffer between the DSP card and the main processor. If 0 or 1, a default size is being used.

Sync: Indicates the current time sync error between the main processor and the DSP in 0.5 ms units. Collected data is time tagged at the source of acquisition, and this value indicates the maximum error in the time tagged data. The time sync algorithm is adaptive and will get more accurate over time (allow 5-10 minutes to achieve maximum accuracy). The LSB of this value toggles between 0 and 1 and is used to indicate that the sync error has changed. This value is updated approximately every minute.

DSPExe: Indicates the executable file for the DSP card.

 

SUB #N:

This area lists the internal variables of a subsystem. The first subsystem is always 0.

SonarOn: Indicates the current ping state of the subsystem, where 0 is off and 1 is on. SONAR_MESSAGE_PING messages from the topside change this value.

Trigger: Indicates the current trigger mode, where 0 is internal and 1 is external. SONAR_MESSAGE_PING_TRIGGER messages from the topside change this value.

Samp/Ping: Indicates the total ADC samples per ping for internal triggering. The actual ping interval will be this many samples at the current ADC sample rate as specified by IO channel 0. This value is effected by the pulse selected, the current data windows for all channels, and the requested ping rate.

BufReq: Indicates the state of a special diagnostic variable which is used to set the ping rate for internal testing purposes.

FreqReq: Indicates the ping rate, as requested by the topside. The actual ping rate may be longer than the requested amount if the data window requested by the topside for any channel requires a longer data collection interval. SONAR_MESSAGE_PING_RATE messages change this value.

DigOut: Indicates the current value of some digital outputs. Most systems do not use these outputs.

ADCChan: Indicates the value of an internal configuration register which is used to select different ADC custom configurations. The normal value is 0 or 1.

Timer5: Indicates the value of an internal timer configuration register. The normal value is 0.

AnalogCard: Indicates the value of an internal configuration register which is used to select different hardware custom configurations. The normal value is 0 or 1.

Pulse: Indicates the file name of the current pulse. SONAR_MESSAGE_PING_SELECT messages modify this value. Note that any pulse must pass validity checks before it is accepted. This value is the last known good pulse.

Find: Indicates the search criteria for pulses for this subsystem.

SubType: Internal value which indicates the type of hardware used to implement this subsystem.

SubNum: Logical subsystem number which must be present for every topside message which wishes to modify this subsystem.

Card: DSP card that this subsystem is mapped to.

Shadow Card: Secondary DSP card for this subsystem if more than 1 card is required.

SUB N IO M:

Configuration details for each IO channel are listed here. The first channel is always 0

NetCnt: Total number of data packets transmitted up to a topside, if connected for this channel. When this value is incremented, new data packs could have been or have been sent to the topside for this channel

DskCnt: Total number of data packets written to local internal disk for this channel.

ADCDecimate, DACRate, ADCRate, FTSize, IFSize, FTDec, SaveSize, DataType, FirstCoef, MinSave, Anhilate, PulseSize, PulseType, PulseOffset, DacGain0: Internal data acquisition and processing parameters which are affected by the current pulse selection.

AGC: When set to 0 the automatic gain control algorithm is disabled. When set to 1 the AGC is enabled. SONAR_MESSAGE_ADC_AGC messages modify this value.

ADCGain: Log2 of the current ADC gain. The minimum gain is 0. SONAR_MESSAGE_ADC_GAIN messages modify this value.

DACGain: Outgoing pulse attenuation factor. SONAR_MESSAGE_PING_GAIN messages modify this value.

Shadow (Card Channel): Internal configuration parameters for some advanced multi DSP card subsystems.

CalConst: Calibration constant. This value scales all data sent to the topside. SONAR_MESSAGE_PROCESSING_CALCONST message modifies this value.

TVGDelay: Time variable spherical correction factor. A value of -1 will disable TVG. 0 applies the normal spherical correction factor to data. A positive value will initiate the spherical correction factor at that count. SONAR_MESSAGE_PROCESSING_PAKDELAY modify this value.

AGCDelay: Number of samples to ignore at the start of a pulse for the AGC algorithm. These samples represent the direct path. Modified by the SONAR_MESSAGE_PROCESSING_DIRECT_PATH message.

Disk On: When 1 data is stored on an internal hard disk. When 0 data is not stored.

Disk Window: Current data window for disk storage. The values are the sample and ping decimation factors, first sample to save, total samples to save, and max packet size.

Net On: When 1 data is sent up the network to a topside. When 0 data is not sent to the topside.

Net Window: Current data window for network data. The values are the sample and ping decimation factors, first sample to save, total samples to save, and max packet size. Modified by the SONAR_MESSAGE_DATA_NETWORK_WINDOW message.

Actual(DAC ADC): Internal parameters for locating resources for pulse transmission and acquisition.

MinBlock MaxBlock: Internal parameters for region of interest for acquired data. This is effected by the current data windows and the ping rate.