Managing monitor sets, See the managing monitor sets – Echelon LNS User Manual
Page 209
LNS Programmer's Guide
195
NvOptions property, the MsgOptions property, and the Tag property.
You can use the NvOptions property, and the MsgOptions property to
set the default monitoring options that will be applied to the monitor set.
For more information on monitoring options, see Setting Monitoring
You can use the
Tag
property to store any information required to quickly
and efficiently identify the monitor set, such as the name of the device
you plan to monitor with the set. See the LNS Object Server Reference
help file for more information on the
Tag
property, and the other
properties of the
MonitorSet
object.
After you have created a monitor set, you can add network variable and message monitor
points to it. The monitor points will represent the network variables and application
messages to be monitored and controlled with the set. See the next section, Managing
Monitor Sets, for more information on this.
Managing Monitor Sets
After you have created a temporary or permanent monitor set, you should perform the
following tasks:
1. Add network variable and message monitor points to the set. For more
information on these tasks, see Adding Network Variable Monitor Points
to a Monitor Set on page 195, and Adding Message Monitor Points to a
2. Configure the monitoring options for the set. These options determine the
behavior of the set while it is enabled. For more information, see Setting
Monitoring Options on page 200.
Generally, the way you will perform each task is the same for temporary monitor sets
and permanent monitor sets. Exceptions to this are noted as each task is described.
Adding Network Variable Monitor Points to a Monitor Set
Each
MonitorSet
object contains an
NvMonitorPoints
property. The
NvMonitorPoints
property returns a collection of the network variable monitor points
in the monitor set. You can use network variable monitor points to monitor the devices
on your network. To create a network variable monitor point, follow these steps:
1. Open
the
ObjectServer
,
Network
, and
System
you plan to monitor and
control, as described in Chapter 4, Programming an LNS Application.
2. Get the device containing the network variable to be monitored:
Set MySubsystems = MySystem.Subsystems
Set MySubsystem = MySubsystems.Item("Floor3.Room7")
Set MyAppDevices = MySubsystem.AppDevices
Set MyAppDevice = MyAppDevices.Item("Thermometer")