Classid, Currentoptions – Echelon OpenLNS User Manual

Page 685

Advertising
background image

OpenLNS Programmer's Reference

648

ClassId

Summary

Identifies the object class of this object.
This property allows the object type to be determined when it

is unknown (for example, when the object was accessed using

the Parent property of another object).

Availability

Local, full, lightweight, and independent clients. Note that

some objects containing this property are not available to

Independent clients.

Syntax

classIdValue = object.ClassId

Element

Description

classIdValue

The object class of the object. The

following value is defined for the

NvMonitorPoint

object in the

ConstClassIds

constant:

80 lcaClassIdNvMonitorPoint

object

The object to be acted on.

Data Type

Integer.

Read/Write

Read only.

Added to API

Depends on the object used to access the property. Generally,

this property exists for an object as soon as the object is

added to the API.

CurrentOptions

Summary

Contains the current monitoring options for this network

variable monitor point. Once the monitor set containing a

monitor point has been opened, you can use this property to

set the monitoring options that will be used for the monitor

point during that particular session

.

For monitor points in

MonitorSet

objects created as

permanent monitor sets, the options contained in this

property default to the options set in the

DefaultOptions

property of the

NvMonitorPoint

. If the options are not set

there, they default to the options set in the

NvOptions

properties in the

MonitorSet

object.

Each time a permanent

MonitorSet

object’s

Open

method is

called, the current options for each of the monitor points in

the set are reset to the options contained in their

CurrentOptions

properties. The

CurrentOptions

property can

only be written to when the monitor set is open.
The

NvMonitorOptions

object contained within this property

is not passed by reference. If you acquire an

NvMonitorOptions

object through the

CurrentOptions

property and modify it, you must then explicitly assign the

modified object back to the

CurrentOptions

property for the

changes to take effect. This following code sample

Advertising