4 csicorascript interface, 1 properties, 2 methods – Campbell Scientific LoggerNet-SDK Software Development Kit User Manual

Page 26: 3 events

Advertising
background image

Section 4. CsiCoraScript Control

4-4

Collect area names must always be unique. Therefore, if an attempt is made to
create a collect area with exactly the same name as a collect area that already
exists, the LoggerNet server will automatically index the name of the collect
area being created. For example, if collect area InLocsArea already exists and
an attempt is made to create another collect area with the same name, the
LoggerNet server will automatically name the new collect area InLocsArea1.

To activate a collect area for collection and to automate the collection process
use the following commands:

set-collect-area-setting CR10X InLocsArea 2 1;
set-device-setting CR10X 5 {1 19900101 300000 120000 3 86400000};

With the above setting, the LoggerNet server will automatically collect all
tables enabled for collection from the CR10X every 300000 milliseconds.
Once this setting is in place, the activated DataSource advisor will display new
data values as they are collected.

4.4 CsiCoraScript Interface

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

4.4.1 Properties

• serverConnected As Boolean (read-only)

• serverLogonName As String

• serverLogonPassword As String

• serverName As String

• serverPort As Long

4.4.2 Methods

• executeScript(String script, Long asyncID) As String

• serverConnect()

• serverDisconnect()

4.4.3 Events

• onScriptComplete(Long asyncID, String result)

• onServerConnectStarted()

• onServerConnectFailure(server_failure_type server_failure)

Advertising