Addnvfromstring, Createtypespec – Echelon OpenLNS User Manual

Page 415

Advertising
background image

OpenLNS Programmer's Reference

378

The created network variable will

have polling enable.

Added to API

Prior to LNS Release 3.0.

AddNvFromString

Summary

Adds a network variable to the interface using the string

description created by the

ToString

method

.

The NetworkVariable object's ToString

method exports the

characteristics of a network variable to a text string. This

string can be used to create a new network variable object

using this method.
Only unaltered strings created using the ToString

method of

the NetworkVariable object should be used as an argument to

this method. Creating or editing these strings is not

supported. Attempting to call this method on an invalid

string will result in an error

Availability

Local, full, and lightweight clients.

Syntax

nvObject = interfaceObject.AddNvFromString nvCsvString

Element

Description

nvObject

The compatible network variable to be

returned.

A compatible network variable is one

that is of the same type and direction

as the source network variable. This

method is used to construct an

interface object for a host application.

interfaceObject

The

Interface

object to be acted on.

nvCsvString

A String describing the network

variable

.

Added to API

Prior to LNS Release 3.0.

CreateTypeSpec

Summary

Creates a new TypeSpec object that can be modified and

passed as a parameter to the following:

The LonMarkObjects.AddFromTypeSpec method

(when creating a new dynamic LonMarkObject

[functional block]).

The TypeSpec property of an existing NetworkVariable

object to change its type (if supported). Changing the

type of a LonMarkObject by setting its TypeSpec

property is not supported.

Availability

Local, full, and lightweight clients.

Advertising