Chapter 1. Introduction

Table of Contents
1.1. Preliminaries
1.2. C++ Programming
1.3. Java Programming
1.4. .NET Programming
1.5. Example Programs

These three APIs share, as much as possible, common methods and syntax. For this reason they are distributed in one package and documented in a single book.

1.1. Preliminaries

The DataHub APIs for C++, Java, and .NET are made up of two classes, DataHubConnector and DataHubPoint whose methods allow you to interface with the DataHub program.

System Requirements

The DataHub APIs for C++, Java, and .NET are compatible with:

  • Windows XP Home & Professional

  • Windows 2000

  • Windows NT 4.0 - All Service Packs should be installed.

Installation

To install the DataHub APIs for C++, Java, and .NET from an archive downloaded from the Cogent web site, follow these steps:

  1. Double-click on the program archive DataHubAPI-7.3-xxxxxx-Windows.exe.

  2. Follow the instructions.

DataHub Configuration

The DataHub instance must be configured to act as a Tunnel/Mirror Master as follows:

  1. Right click on the DataHub system-tray icon and choose Properties.

  2. In the Properties window, select Tunnel/Mirror

  3. In the Tunnelling Master section, you can configure plain-text or secure tunnelling. Ensure that at least one of these is checked. If you want to change any of the other defaults, please refer to Tunnel/Mirror in the Cogent DataHub manual for more information.

    [Note]

    To optimize throughput, un-check the Try to send data even if it is known to be superseded option. This will allow the DataHub instance to drop stale values for points which have already changed before the client has been notified of the original change. The latest value will always be transmitted.

  4. Click OK to close the Properties window.