beautypg.com

Echelon OpenLNS User Manual

Page 414

background image

OpenLNS Programmer's Reference

377

Element

Description

nvObject

The compatible network variable to be

returned.

A compatible network variable is one

that is of the same type and direction

as the source network variable. This

method is used to construct an

interface object for a host application.

interfaceObject

The

Interface

object to be acted on.

nvName

A String containing the name of the

added network variable.

The name specified in this parameter

can be a maximum of 16 characters,

and it must not start with a number.

In addition, it cannot include square

brackets ([]), commas (,), or periods (.).
Once the NetworkVariable object has

been created, it may be renamed

subject to the restrictions of the Name

property.
The name specified in this method

may subsequently be retrieved using

the ProgrammaticName property.

sourceNvObj

The

NetworkVariable

object for which

a complementary network variable is

created.

flags

The options which will apply to the

newly created network variable.
The possible values for the flags

parameter, which are contained in the

ConstLNSInterfaceCompNvEx

constant, are as follows:
0 lcaLNS_PollPassthrough
The created network variable will

have the same value in

IsPolled

as the

network variable it was based on.
1 lcaLNS_PollToggle
The created network variable will

have the opposite value in

IsPolled

as

the network variable it was based on.
2 lcaLNS_PollClear
The created network variable will

have polling disabled.
3 lcaLNS_PollSet