2 csilogmonitor control application example – Campbell Scientific LoggerNet Server SDK User Manual

Page 62

Advertising
background image

Section 13. Developing an Application Using the CsiLogMonitor Control

Check the box next to the CsiLogMonitor 1.0 Type Library, click Apply, and
close the window. An icon for the CsiLogMonitor control will appear in the
toolbox.

13.2.2 CsiLogMonitor Control Application Example

You are now ready to begin creating an application that monitors log messages
from the LoggerNet server. An example of a user interface that accomplishes
this task is shown in Figure 13-1. This interface includes the CsiLogMonitor
control and other objects on the form to create a functional application.

FIGURE 13-1. CsiLogMonitor Example

Now that the interface has been designed, the code can be organized to
accomplish the requirements of the application. Initially, the application must
connect to the LoggerNet server using the serverConnect() method. A basic
example of code used to accomplish this task is shown in the table that follows:

13-2

Advertising