Section 2. csiserverdirect control, 1 purpose of the csiserverdirect control, 2 csiserverdirect interface – Campbell Scientific LoggerNet-SDK Software Development Kit User Manual

Page 17

Advertising
background image

Section 2. CsiServerDirect Control

2.1 Purpose of the CsiServerDirect Control

The CsiServerDirect Control allows the user to start and stop the included,
limited LoggerNet server DLL (CORALIB3D.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
CsiServerDirect control to start another LoggerNet server. However, if a
separate version of LoggerNet has not been started or installed on the network,
use the CsiServerDirect control to start the included CORALIB3D.DLL. The
included CORALIB3D.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 CsiServerDirect
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 CsiServerDirect 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 CsiServerDirect 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 CsiServerDirect Interface

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

2-1

Advertising