Com return values, Logmonitor.tranlogrecordsback, Name – Campbell Scientific LoggerNet-SDK Software Development Kit User Manual

Page 159: Description, 2 methods, Logmonitor.commlogmonitorstart()

Advertising
background image

Section 19. CsiLogMonitor Control Reference

COM Return Values

Table of Possible Values

Code Meaning

S_OK

Success: Normal return

LogMonitor.tranLogRecordsBack

Name

LogMonitor.tranLogRecordsBack As Long

Description

The LoggerNet server maintains a transaction log history buffer that can be
accessed using this property. When the tranLogMonitorStart()
method is called, by default 100 historical log files will be retrieved from the
LoggerNet server. If a different number of historical log entries are desired, set
this property to the exact number of entries to initially retrieve from the
LoggerNet server. This number must be one or greater.

COM Return Values

Table of Possible Values

Code Meaning

S_OK

Success: Normal return

E_CSI_INVALIDARG

Error: The number must be one or greater

E_CSI_BUSY

Error: Attempting to set this property while
the logs are being actively monitored

19.1.2 Methods

LogMonitor.commLogMonitorStart()

Name

LogMonitor.commLogMonitorStart()

Description

This method starts monitoring the communication log entries on the LoggerNet
server. This method triggers

onCommLogRecord()

as log entries are retrieved

or

onCommLogFailure

() if the method fails.

19-5

Advertising