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

Page 55

Advertising
background image

Section 11. Developing an Application
Using the CsiDataSource Control

11.1 Purpose

The CsiDataSource control primarily monitors data residing in the LoggerNet
server data cache. The LoggerNet server data cache is a location where the
server stores collected datalogger records. The control can also be used to see
measurements performed in real-time; for example, values being recorded for
input locations in mixed-array dataloggers. The BrokerMap control often
accompanies this control to display the names of tables and columns in each
table so they can be selected for data monitoring. However, the example
illustrated in this section requires that the user enter a station and table that are
known to exist on the LoggerNet server and all columns will be monitored
within that table. The application we develop will:

• Connect to a LoggerNet server

• Allow the user to enter a known station and table

• Monitor data in all columns of the table

The following section illustrates how to build an application that can perform
these tasks using the CsiDataSource control and the LoggerNet server.

11.2 Using the CsiDataSource Control

11.2.1 Getting Started with the CsiDataSource Control

CsiDataSource is an SDK control (an ActiveX object) designed to monitor data
collected from the dataloggers in the LoggerNet network. This example
assumes that:

• you have registered the SDK controls correctly

• you are developing the application with Visual Basic 6.0

• a LoggerNet server is currently running and accessible on the network

• at least one station already exists in the LoggerNet server's network map

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). This will

open a new, blank form.

11-1

Advertising