Formatspec, Name – Echelon OpenLNS User Manual
Page 688
OpenLNS Programmer's Reference
651
Added to API
LNS Release 3.0.
FormatSpec
Summary
Contains the format specification information for data read
.
This property contains a FormatSpec object that determines
the base type to use when reading the formatted values of the
data point or monitor point. For data points acquired through
NetworkVariable objects, the default settings for the
FormatSpec object are determined based on the network
variable’s TypeSpec property.
For data points, you can also use the CurrentFormatLocale
property to determine which options OpenLNS will use when
displaying the data stored in the DsIsDefaultFormat
property.
The FormatSpec object contained within this property is not
passed by reference. If you modify the values assigned to the
properties of a local FormatSpec object, you must then
explicitly assign the modified FormatSpec object back to the
FormatSpec property of the NvMonitorPoint or DataPoint for
the changes to take effect. This following code sample
demonstrates this procedure:
Set fsObject = dpObject.FormatSpec
fsObject.FormatName = "SNVT_temp_f#SI"
Set dpObject.FormatSpec = fsObject
Availability
Local, full, lightweight, and independent clients. Note that
objects and temporary monitor points
are not available on Independent clients.
Syntax
fsObject= dpObject.
Element
Description
fsObject
format information.
dpObject
on.
Data Type
FormatSpec object
.
Read/Write
Read/write.
Added to API
LNS Release 3.0.
Name
Summary
Specifies the name of an object as a character string. This
property is case sensitive. Searches by name must match
case.
This property can be a maximum of 85 characters long, but it
may not contain the forward slash (/), back slash (\), period