Section 2. csiserver control, 1 purpose of the csiserver control, 2 csiserver interface – Campbell Scientific LoggerNet Server SDK User Manual

Page 17

Advertising
background image

Section 2. CsiServer Control

2.1 Purpose of the CsiServer Control

The CsiServer Control allows the user to start and stop the included,
LoggerNet server DLL (CORALIB3.DLL). All SDK controls must connect to
and use a LoggerNet server to communicate with Campbell Scientific
dataloggers. Therefore, a LoggerNet server must be running on the network
before the included examples or any custom SDK software will function.

Campbell Scientific sells a complete LoggerNet software package that includes
the LoggerNet server and many complex software clients. This version of
LoggerNet may already be installed and in use on the network where the
custom SDK application will reside. If the LoggerNet software is already
installed and running on the network, it is not necessary to use the CsiServer
control to start another LoggerNet server. However, if a separate version of
LoggerNet has not been started or installed on the network, use the CsiServer
control to start the included CORALIB3.DLL. The included CORALIB3.DLL
must be located in the same folder as the created application, the PATH
environmental variable, or in the Windows system directory before it can be
started.

All of the configuration information and data for the datalogger network will
be stored in the LoggerNet working directory described in the CsiServer
control properties. Only one LoggerNet server at a time can use the network
configuration information contained in the working directory. If a previous
installation of LoggerNet created the network map and configuration
information, the LoggerNet server included in the SDK can point to and use
this configuration information. However, avoid file conflict issues by making
sure only one LoggerNet server accesses the same working directory at a time.

Careful consideration should be given before beginning a project using the
SDK. Consider the type of software application needed. Many developers
merely want to create custom software interfaces that extend a previous
installation of LoggerNet. The CsiServer control won’t be needed for this type
of application. However, if you are interested in creating a complete software
solution that will replace or be used instead of Campbell Scientific’s
LoggerNet software package, make sure a LoggerNet server is not running and
then start the included LoggerNet server DLL with the CsiServer control.
Moreover, an understanding of CoraScript commands, which are discussed in
the next section, is required to set up and manipulate the datalogger network.

2.2 CsiServer Interface

See the Reference section in this manual for detailed descriptions of these
properties, methods, and events.

2-1

Advertising