Define elements – Echelon LonBridg Server User Manual

Page 52

background image

46

LonBridge Device Class File


network output polled SNVT_power nvoPower
nv_properties {
cpPwrSendOnDelta
};

The first network variable, nviValue, defines the input state for the simplified

Lamp Module, which the LonBridge application uses to set the lamp’s state. The

second network variable, nvoValueFb, defines the output state for the simplified
Lamp Module, which the lamp uses to report its current state to the LonBridge

application and to the network. And the third network variable, nvoPower,

defines the output power usage for the device, which the lamp uses to report its
power usage to the LonBridge application and to the network.
The next step is to define the network variables within the device class file, that

is, to translate the Neuron C declarations for the network variables into the XML
elements required by the device class file.

Define Elements

There are two sections within the device class file that define the network
variables (within elements). The first section appears within the

element:













The

state

attribute matches two network variables, an input network variable

and an output network variable. Thus, the element contains two

elements, one with direction=”input” and the other with direction=”output”. At
this point, however, the network variable indices are unknown, so they are

marked with a question mark (?).
The

power

attribute matches one network variable. Thus, the element

contains one element, with direction=”output”. The network variable index

is unknown, so it is marked with a question mark (?).

See

Browse the XIF File to Determine Indices

on page 56 to determine the

network variable indices.
The other section that defines network variables within the device class file is the
element that is not within the element. This section defines

the specific attributes of each network variable: