1 purpose, 2 using the csiserver control, 1 getting started with the csiserver control – Campbell Scientific LoggerNet Server SDK User Manual

Page 19

Advertising
background image

Section 3. Developing an Application
Using the CsiServer Control

3.1 Purpose

This section shows by example how to build an application using the SDK
CsiServer control. The application’s functions are:

1. Start the LoggerNet server (CORALIB3.DLL).

2. Stop the LoggerNet server (CORALIB3.DLL).

3.2 Using the CsiServer Control

3.2.1 Getting Started with the CsiServer Control

The CsiServer SDK control (an ActiveX object) starts and stops the LoggerNet
server (CORALIB3.DLL).

This example assumes that:

• you have registered the CsiServer control correctly

• you will develop the application with Visual Basic 6.0

• the CORALIB3.DLL exists in the folder with the created application, the

PATH environmental variable, or the Windows system directory

• both the CORALIB3.DLL and application you are developing reside on

the same computer

Complete the following steps first:

1. Start Visual Basic 6.0 (Start | Programs | Microsoft Visual Basic 6.0 |

Microsoft Visual Basic 6)

2. Start a new project (File | New Project | Standard EXE | OK) opening a

new, blank form.

3. View the toolbox for this new project (VB 6 Main Menu | View |

Toolbox).

4. Right click on the toolbox area and select Components. A component

window will open and the following SDK controls will appear within the
list if they are registered properly:

CsiBrokerMap 1.0 Type Library
CsiCoraScript 1.0 Type Library
CsiDatalogger 1.0 Type Library
CsiDataSource 1.0 Type Library

3-1

Advertising