Dsource_oncontrolready(), Name, Description – Campbell Scientific LoggerNet-SDK Software Development Kit User Manual

Page 133: Com return values, Dsource_onvariablesetcomplete(), Parameters

Advertising
background image

Section 18. CsiDataSource Control Reference

DSource_onControlReady()

Name

onControlReady()

Description

This event is triggered when a connection to the server has been established
and is a result of invoking the connect() method. Once this event has been
called, advisors can be created and started.

COM Return Values

Table of Possible Values

Code Meaning

S_OK

Success: Normal return

DSource_onVariableSetComplete()

Name

onVariableSetComplete(Long tran_id, Object myAdvisor,

Boolean successful, variable_outcome_code

response_code)

Description

This event gets called when the method variableSetStart() has completed.

Parameters

tran_id: The transaction ID used to track this event
myAdvisor: References the advisor that started the variable set transaction.
successful: Indicates whether the transaction succeeded.
response_code: Values from the following table:

Table of possible response_code outcomes.

Enumeration Name

Value

Description

vo_outcome_unknown 0

Indicates that the outcome could not
be determined

vo_outcome_succeeded 1

Indicates that the setting of the
variable was set successfully

vo_outcome_connection_failed 2

Indicates that the control could not
connect to the LoggerNet server

vo_outcome_invalid_logon 3

Indicates that the logonName or
logonPassword was incorrect

vo_outcome_server_security_blocked 4

Indicates that security has been
enabled on the LoggerNet server and
that you do not have sufficient
privileges to connect

18-9

Advertising