DNP3 Driver:  ShowStats Function

Purpose:                This function opens a window that contains communication statistics for the driver, or a particular remote station

Format:                 DNP\ShowStats(Enable, X, Y, Ref, Station)

Parameters:          Enable  - Set true to display the window.

                             X  - Screen X position of window.

                             Y  - Screen Y position of window.

                             Ref -  Object reference of driver to display statistics for.

                             Station -  Station number to display statistics for.

Comments:

This function displays a window containing statistics of messages sent and received by the driver, either for all stations or a particular remote station.  The following statistics are displayed:

 

Variable

Meaning

Counts

the number of successful communications since starting.

Time Stamp

the time of the last successful communication, in seconds since midnight.

Date Stamp

the date of the last successful communication, in days since January 1 1970.

Dt

the time interval between successful communications, in seconds.

Error

the error code number of the current communication attempt.

Error Message

the current error code translated into a message.

Last Error

the error code number of the last error encountered by any communication attempt.

Last Error Message

the last error code translated into a message.

Error Counts

the number of errors encountered since starting.

Error Time

the time of the last error encountered in any communication attempt, in seconds since midnight.

Error Date

the date of the last error encountered in any communication attempt, in days since January 1 1970.

Error Owner

the name of the read or write statement which encountered the most recent error.

Error Station

is the address of the station which encountered the most recent error.

Serial Error

Set if the serial port returns an error.

 

This function may not appear in a script.