Methods – Echelon OpenLNS User Manual

Page 324

Advertising
background image

OpenLNS Programmer's Reference

287

Parent

_NewEnum

Methods

The

DeviceTemplates

object contains the following methods

.

Add

ItemByHandle

ItemByProgramId

Remove

Add

Summary

Defines a new

DeviceTemplate

object. A

DeviceTemplate

object needs to be explicitly created with this method only if

that

DeviceTemplate

is going to be initialized by importing an

external interface file (.XIF and .XFB extensions).
If the

DeviceTemplate

is to be initialized over the network

from a device, the

DeviceTemplate

is created automatically by

the Object Server (see the

Add

method of the

AppDevice

object for more information).

Availability

Local, full, and lightweight clients.

Syntax

devTemplateObject = devTemplatesColl.Add

(devTemplateName, programType)

Element

Description

devTemplateObject

The newly defined

DeviceTemplate

object.

devTemplatesColl

The

DeviceTemplates

collection

object.

devTemplateName

A String containing the name of the

device template.

programType

The type of program associated

with this device template as an

integer.
The enumerated values for this

value, which are contained in the

ConstProgramTypes

constant, are

as follows:

0 lcaProgramTypeSource
The application program is defined

by a Neuron C source file.
1 lcaProgramTypeXif
The application program is defined

by an external interface (.XIF

extension) file.
2 lcaProgramTypeFromDevice

Advertising