beautypg.com

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

Page 61

background image

Section 13. Developing an Application
Using the CsiLogMonitor Control

13.1 Purpose

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

1. Connect to a running LoggerNet server

2. Monitor the LoggerNet server transaction and communication logs.

13.2 Using the CsiLogMonitor Control

13.2.1 Getting Started with the CsiLogMonitor Control

The CsiLogMonitor SDK control (an ActiveX object) connects to the
LoggerNet server and monitors transaction and communication logs.

This example assumes that:

• you have registered the CsiLogMonitor 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

13-1