Section 4. csicorascript control, 1 purpose of the csicorascript control, 2 connecting to the server – Campbell Scientific LoggerNet-SDK Software Development Kit User Manual
Page 23: 3 using corascript commands

Section 4. CsiCoraScript Control
4.1 Purpose of the CsiCoraScript Control
The CsiCoraScript control provides the power to administer the LoggerNet
server. There are many different settings and commands available with this
control.
Specific LoggerNet server functions and tasks are set by passing CoraScript
commands to the LoggerNet server. CoraScript commands execute LoggerNet
server operations that include adding devices to the network map, data
collection, listing table and datalogger information, and changing settings in
the LoggerNet server and attached devices. CoraScript commands and their
purposes can be found in the Quick Reference help file installed with the
LoggerNet Server SDK.
The following CoraScript commands are currently unsupported
in the SDK: connect, disconnect, help, exit, bye, quit, and list-
commands.
NOTE
4.2 Connecting to the Server
There are two basic actions required for this control to connect to the
LoggerNet server:
1. Set server properties:
• serverName - The name or IP address of the LoggerNet server . The
default value is
localhost
.
• serverPort - The port on which the LoggerNet server is running. The
default value is 6789.
• serverLogonName (Optional) - If security has been enabled on the
server, a valid logon name is required.
• serverLogonPassword (Optional) - If security has been enabled on the
server, a valid password that corresponds with a valid logon name is
required.
2. Invoke
the
method.
4.3 Using CoraScript Commands
CoraScript commands are used to setup and manipulate the LoggerNet server.
A complete listing of these commands can be found in the LoggerNet SDK
Quick Reference. A thorough knowledge of these powerful commands is
recommended before attempting to make changes to settings or devices in the
LoggerNet server. The following sections outline some basic commands that
can be used to quickly set up devices and collect data from the network.
4-1