3 csidatasource interfaces, 1 dsource interface, 1 properties – Campbell Scientific LoggerNet-SDK Software Development Kit User Manual

Page 52: 2 methods, 3 events, 2 advisor interface

Advertising
background image

Section 10. CsiDataSource Control

10.3 CsiDataSource Interfaces

The following interfaces are used in the CsiDataSource control:

• DSource – the controlling interface

• Advisor - created through the DSource interface to monitor certain data

columns on a specified station and table.

• Record - received in the event onAdviseRecord. A record is a collection

of values that contain data.

• Value - contains the name and value of a single column.

10.3.1 Dsource Interface

See the Reference Section for descriptions of these properties, methods, and
events.

10.3.1.1 Properties

• logonName As String

• logonPassword As String

• serverName As String

• serverPort As Long

• state As data_source_state

• sendRecordBlocks as Boolean

10.3.1.2 Methods

• connect()

• createAdvisor() As Object

• disconnect()

10.3.1.3 Events

• onAdviseReady(Object myAdvisor)

• onAdviseRecord(Object myAdvisor, Object myRecord)

• onAdvisorFailure(csiAdvisorFailureCode failure, Object myAdvisor)

• onControlFailure(csidsFailureCode failureCode)

• onControlReady()

• onVariableSetComplete(Long tran_id, Object myAdvisor, Boolean

successful, variable_outcome_type response_code)

• onAdviseRecords(Object myAdvisor, object record_collection)

10.3.2 Advisor Interface

See the Reference Section for descriptions of these properties, methods, and
events.

10-2

Advertising