beautypg.com

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

Page 37

background image

Section 7. Developing an Application
Using the CsiBrokerMap Control

7.1 Purpose

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

1. Display names of all stations in the current network.

2. Upon selection of any single station, display tables associated with that

station's currently running program.

3. Upon selection of any single table, display all fields (columns) included in

that table.

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

7.2 Using the CsiBrokerMap Control

7.2.1 Getting Started with the CsiBrokerMap Control

The CsiBrokerMap is an SDK control (an ActiveX object) designed to display
names of dataloggers in the current network. This control can also display
names of all tables belonging to the selected datalogger and columns in the
selected table. This information is derived from collect area information
created when a program is associated with a datalogger or when table
definitions are retrieved from the datalogger. Since the BrokerMap control
does not list devices if collect areas are not known, use the CoraScript control
to associate the program or to retrieve table definitions.

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

• the datalogger program has been associated or table definitions have been

retrieved

Complete the following steps first:

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

Microsoft Visual Basic 6)

7-1