1 purpose, 2 using the csicorascript control, 1 getting started with the csicorascript control – Campbell Scientific LoggerNet-SDK Software Development Kit User Manual

Page 27

Advertising
background image

Section 5. Developing an Application
Using the CsiCoraScript Control

5.1 Purpose

This section shows an example of how to build an application using the
CsiCoraScript control. The application’s functions are:

1. Connect to a running LoggerNet server

2. Execute CoraScript commands to administer the LoggerNet server.

5.2 Using the CsiCoraScript Control

5.2.1 Getting Started with the CsiCoraScript Control

The CsiCoraScript SDK control (an ActiveX object) administers the datalogger
network by passing CoraScript commands to the LoggerNet server.

This example assumes that:

• you have registered the CsiCoraScript control correctly

• you are developing the application in Visual Basic 6.0

• a LoggerNet server is running and accessible on the network

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
CsiLogMonitor 1.0 Type Library
CsiServerDirect 1.0 Type Library

5-1

Advertising