Main user interface window, Network interface selection form, Add device dialog/service pin handling – Echelon Mini EVK User Manual

Page 93: Isi information window

Advertising
background image

User Interface and Application Specific
Implementation

This section describes the classes, files, and dialogs that make up the Monitoring

& Control Example Application’s user interface.

Main User Interface Window

The Monitoring & Control Example Application provides a main dialog-based

user interface. The MonitorControlMain class contains the implementation of

the main user interface window. This includes the event handlers related to that
user interface, such as the various click event handlers related to the buttons.

Network Interface Selection Form

When you start the Monitoring & Control Example Application, the Network
Interface dialog opens. You can use this dialog to select a network interface from a
list of available network interfaces that are currently registered and attached to

the system, can operate as layer 5 network interface, and are not in use by other
applications. This information is obtained by using the OpenLDV 2.1

ldv_get_matching_devices function to obtain information about the network
interface devices that match the specified set of capabilities. The default

interface is the last network interface selected, or the first network interface in

the list if you are running the software for the first time.
The example code saves the persistent information for the last network interface

selected will be saved in the
HKCU\SOFTWARE\MonitorControlExample\Network Interface

Windows

Registry entry. After you select a network interface, you can press Connect to
attach to the network interface or quit the application. If there is an error while
attaching to the network interface, an error message will be displayed. You can

then try to select a different network interface from the list. The

ConnectNiForm.cs file contains the implementation of the network interface
selection dialog.

Add Device Dialog/Service Pin Handling

You can use the Add Device dialog to register a new device. You can access this
dialog by clicking Add Device on the main window. You identify the device to be

registered by either specifying the device’s Neuron ID, or by pressing the device’s

Service button. When the application receives a service pin message from a
device, the Neuron ID of the device that sent the message will be displayed in the

Neuron ID box on the Add Device dialog. You can ignore the service pin message,

or begin monitoring the device by pressing OK. In this case, the main dialog will
be reset and all inputs will now be polled from the newly selected device. The

AddDeviceForm class contains the implementation of the Add Device dialog.

ISI Information Window

The Monitoring & Control Example Application displays ISI messages in the ISI

Information window. You can access this window by clicking ISI Info on the

Mini EVK User’s Guide

87

Advertising