Use the resource editor to determine attributes – Echelon LonBridg Server User Manual
Page 53
![background image](/manuals/735757/53/background.png)
LonBridge Server User’s Guide
47
...
...
At this point, the
network variable indexes, their lengths, and the byte indexes for fields within the
network variable (if any). However, it does show the three network variables
that the device class file requires for the simplified Lamp Module. In addition,
because the state of the device can be “on” or “off”, the
state
attribute includes enum=”true” so that we can define an enumeration of the
states.
See
Browse the XIF File to Determine Indices
on page 56 to determine the
network variable indexes.
The next step is to determine network variable lengths and byte indexes.
Use the Resource Editor to Determine Attributes
Because the three network variables for the simplified Lamp Module are
standard network variable (SNVT) types, you can use the Echelon NodeBuilder
Resource Editor (or the LONMARK Resource Files Web page,
to determine the attributes of each network variable and network variable field.
You can obtain the most current version of the LonMark Resource Files from
.
For the simplified Lamp Module, the three network variables are declared as:
• SNVT_switch_2 nviValue
• SNVT_switch_2 nvoValueFb
• SNVT_power nvoPower
You can use the Resource Editor to determine the following information about
each of the SNVT types:
• The overall size of the network variable, in bytes
• The byte index value for each field within the network variable
• The length of each field within the network variable, in bytes
• Enumeration values (if any) for network variable fields
• Scaling factors (if any) for network variable fields