beautypg.com

Dsformattype, Dsformattype p, E dsformattype p – Echelon OpenLNS User Manual

Page 627

background image

OpenLNS Programmer's Reference

590

DsFormatType

Summary

Specifies the type the OpenLNS Server will use in

interpreting the value of the network variable

.

Availability

Local, full, and lightweight clients.

Syntax

formatType = nvObject.DsFormatType

Element

Description

formatType

The type the OpenLNS Server will use

in interpreting the value of the network

variable.

The DsFormatType parameter is a

string defining the type that will be

used to interpret the value of the

network variable. The DsFormatType

string has several possible syntaxes:
1. A format name beginning with

"SNVT" for standard network

variable type formats, or "UNVT"

for user-defined network variable

type formats. For example,

"SNVT_switch". The OpenLNS

Server will use the resource file

catalog specified using the

LdrfCatalogPath property to search

for SNVT and UNVT formats.

There may be several different

formats for the same network

variable type. For example, the

LonMark standard device resource

file set has two alternate formats

for the type SNVT_temp_f, and

those formats are named
SNVT_temp_f#SI

and

SNVT_temp_f#US

. In this case, you

could specify SNVT_temp_f to get

the current default format for that

type.
The default formats for types such

as SNVT_temp_f are determined

using the Windows regional settings

of the PC where the data is

formatted (on the PC housing the

OpenLNS Server for local and

lightweight clients, or on the PC

running the application for full

clients). To determine the settings

being used on a computer, open the

Windows Control Panel and

double-click the Regional Options

icon. Select the Numbers tab.