Source code mappings – Echelon LNS User Manual

Page 364

Advertising
background image

LNS Programmer's Guide

350

7. If you clicked the Temporary Monitor Set button in step 6, a dialog

with a tree view of the AppDevice objects installed on your network will
open. Select the AppDevice object containing the network variable(s) you

want to monitor.

A temporary monitor set will be created containing a network variable

monitor point for every network variable on the devices main and custom
interfaces.

For source information and specific properties set for these objects see
CPrimaryFormDlg::OnTemporaryMonSet() in the
PrimaryFormDlg.cpp file. Also, see the TempMonitorSetDlg.cpp file.

8. If you clicked the Permanent Monitor Set button in step 6, a dialog will

display allowing you to open one or more permanent monitor sets. For
source information, see CPrimaryFormDlg::OnPermanentMonSet() in

the PrimaryFormDlg.cpp file, and the PermMonitorSetDlg.cpp file.

9. Once you have completed step 7 or 8 and created a monitor set, you can

choose from the following options:

• Click the Query Device Status button to query the status of the

devices using the message monitor points available in the currently
selected monitor set.

• Click the Toggle Monitoring Button to enable or disable monitor

points.

• Click the Set Value button to write to the value of an input network

variable monitor point.

Source Code Mappings

For your reference, Table C.4 lists the various tasks performed by the example monitor

and control application, and lists the names of the classes containing the code that
invokes these tasks.

Table C.4 Example Monitor and Control Application

Task

GUI Code

LNS Interface Code

Creating
monitor sets

and monitor

points.

CLcaMonitorHelper::CreateExampleMonitorSets

Browsing
explicitly

polled and

bound monitor

points.

Opening a monitor set:


CPrimaryFormDlg::OnPermanentMonSet

CPrimaryFormDlg::OnTemporaryMonSet

Handling updates

CPrimaryFormDlg::OnTimer

Opening a Monitor Set:

CLcaMonitorHelper::OpenCurMonitorSet

Assigning an event handler

CEventSink::OnNvMonitorPointEvent

Handling events

CMonitorPointListener:: raw_UpdateEvent

CMonitorPointListener::raw_UpdateErrorEvent

Advertising