beautypg.com

4 using the delete function on a virtual channel, 2 virtual devices, 1 using the list function on virtual devices – Echelon i.LON SmartServer 2.0 User Manual

Page 287: 2 using the get function on virtual devices, Using the delete function on a virtual channel -4, Virtual devices -4, Using the list function on virtual devices -4, Using the get function on virtual devices -4, Virtual devices

background image

i.LON SmartServer 2.0 Programmer’s Reference

17-4

17.1.4

Using the Delete Function on a Virtual Channel

You can use the Delete function to delete a Virtual channel on the SmartServer. The Delete function
takes an element with a Virtual_Channel_Cfg type as its input. The element only
needs to include the Virtual channel’s property in the Delete Request as demonstrated
in the following code sample:

Request



xsi:type="Virtual_Channel_Cfg">

Net/Virtual

Channel

1


Response



0


Net/Virtual

Channel

1


17.2

Virtual Devices

The following section describes how to use the List, Get, Set, and Delete functions on Virtual devices.

17.2.1

Using the List Function on Virtual Devices

You can use the List function to retrieve a list of Virtual devices on the SmartServer. The List function
takes an element that has an xSelect statement with a Virtual_Device_Cfg type as its
input, as shown in the example below.

Request



//Item[@xsi:type="Virtual_Device_Cfg"]


Response



0
4.0

Net/VirtCh/iLON

System

VirtualDevice;local;xsi:type="Virtual_Device_Cfg"
0


You could use the list of elements returned by this function as input for the Get function. The
Get function would then return the configuration of each device included in the list. The next section
describes the properties included in each of these elements.

17.2.2

Using the Get Function on Virtual Devices

You can use the Get function to retrieve the configuration of a Virtual device defined on the
SmartServer. The input parameters you supply to this function will include one or more