Addcomplementarynv – Echelon OpenLNS User Manual
Page 412
OpenLNS Programmer's Reference
375
ConstLNSInterfaceCompNvEx
constant, are as follows:
0 lcaLNS_PollPassthrough
The created network variable will
have the same value in
network variable it was based on.
1 lcaLNS_PollToggle
The created network variable will
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
object that is complementary to a
specified target network variable, and adds the
complementary network variable to the specified
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
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