Nvmonitoroptions object – Echelon LNS User Manual
Page 216

LNS Programmer's Guide
202
3. When a monitor set is opened, each network variable monitor point in the
set will use the default options established in either step 1 or step 2. If
you want a network variable monitor point to use different options during
a given monitoring session, you can do so by writing to the
NvMonitorPoint
object’s
CurrentOptions
property after the monitor
session has started (i.e. the monitor set has been opened). Remember that
these changes take effect for the current session only.
The following code sample sets the current values for a network variable
monitor point’s
PollInterval
property.
Set NvMonitorPointOptions = NvMonPoint.CurrentOptions
NvMonitorPointOptions.PollInterval = 1500
Set MonitorPoint.CurrentOptions = NvMonitorPointOptions
NOTE: When performing these steps, remember that the NvOptions,
DefaultOptions and CurrentOptions properties are not passed by
reference. When you modify an NvMonitorOptions object returned by any of
these properties, the changes will not take effect until the modified object is
passed back to the NvOptions, DefaultOptions or CurrentOptions
property of the applicable monitor set or monitor point.
NvMonitorOptions Object
The three properties mentioned in this section (
NvOptions
,
DefaultOptions
,
CurrentOptions
) that apply to network variable monitor points all provide access to an
NvMonitorOptions
object. The
NvMonitorOptions
object contains a set of properties
that define the behavior of network variable monitor points when they are enabled.
Table 9.2 lists and describes these properties. The default values listed in Table 9.2 are
the defaults that are initially applied to the NvMonitorOptions object accessed through
a monitor set’s NvOptions property.