Com return values, Dsource_onadviserecord(), Name – Campbell Scientific LoggerNet-SDK Software Development Kit User Manual

Page 130: Description, Dsource_onadvisorfailure(), Parameters

Advertising
background image

Section 18. CsiDataSource Control Reference

COM Return Values

Table of Possible Values

Code Meaning

S_OK

Success: Normal return

DSource_onAdviseRecord()

Name

onAdviseRecord(Object myAdvisor, Object myRecord)

Description

This event returns notification of newly acquired data from an advisor. If
records are not being acquired, the advisor will not display them. Please make
sure the tables specified in the advisor are enabled for collection through the
use of CoraScript commands (set-collect-area-setting setting ID 2). Once the
tables are enabled for collection, use the Datalogger control to manually collect
records or use the CoraScript control to enable scheduled collection.

COM Return Values

Table of Possible Values

Code Meaning

S_OK

Success: Normal return

DSource_onAdvisorFailure()

Name

onAdvisorFailure(csiAdvisorFailureCode failure,

Advisor myAdvisor)

Description

Indicates there was a failure with the advisor specified in myAdvisor.

Parameters

Table of Possible response codes.

Enumeration Name

Value

Description

csiAdvisorFailureUnknown 0

Indicates

that an error has occurred but its

nature is unknown

csiAdvisorFailureConnectionFailed 1 Indicates that the connection failed. This can

happen if a connection has been successfully
established but then lost or because an invalid
serverName or serverPort property value was
specified. This type of failure can also occur if
the IP stack on the server host or on the host
for this application is not configured correctly.

18-6

Advertising