Addcomplementarynv – Echelon OpenLNS User Manual

Page 412

Advertising
background image

OpenLNS Programmer's Reference

375

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
The created network variable will

have polling enable.

Added to API

Prior to LNS Release 3.0.

AddComplementaryNv

Summary

Creates a

NetworkVariable

object that is complementary to a

specified target network variable, and adds the

complementary network variable to the specified

Interface

object

.

A network variable is complementary to another network

variable if it uses the same type and configuration (for

example, service type, authentication setting, default value,

polling attribute) but opposite direction (two network

variables that may be bound together). This method is used

to construct an

Interface

object for a host application. This

method is typically used to create an input network variable

that is subsequently bound to a target output network

variable that is to be monitored

This method should only be called on a custom Interface

object that is contained by a device that supports dynamic

network variables.

Availability

Local, full, and lightweight clients.

Syntax

nvObject =

interfaceObject.AddComplementaryNv(nvName,

sourceNvObj)

Element

Description

nvObject

The compatible network variable to be

returned.

A compatible network variable is one

that is of the same type and direction

Advertising