Echelon i.LON SmartServer Informacje Techniczne Strona 284

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 443
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 283
i.LON SmartServer 2.0 Programmer’s Reference
17-1
17 Virtual Driver
The virtual channel is the SmartServer's internal channel. It is used as a gateway for system
information that is used by the data points on the SmartServer. The Virtual driver contains data points
representing the SmartServer's free RAM, free disk space, CPU usage, software version number, last
received service pin message, and other information. The following chapter describes how to manage
virtual channels, and devices and data points on the virtual channel.
17.1
Virtual Channels
The following section describes how to use the List, Get, Set, and Delete functions on Virtual channels.
17.1.1
Using the List Function on Virtual Channels
You can use the List function to retrieve a list of Virtual channels on the SmartServer. The List
function takes an <iLonItem> element that has an xSelect statement with a Virtual_Channel_Cfg type
as its input, as shown in the example below.
Request
<List xmlns="http://wsdl.echelon.com/web_services_ns/ilon100/v4.0/message/">
<iLonItem>
<xSelect>//Item[@xsi:type="Virtual_Channel_Cfg"]</xSelect>
</iLonItem>
</List>
Response
<List xmlns="http://wsdl.echelon.com/web_services_ns/ilon100/v4.0/message/">
<iLonItem>
<UCPTfaultCount>0</UCPTfaultCount>
<UCPTcurrentConfig>4.0</UCPTcurrentConfig>
<Item>
<UCPTname>Net/VirtCh</UCPTname>
<UCPTannotation>VirtualChannel;xsi:type="Virtual_Channel_Cfg"</UCPTannotation>
<UCPThidden>0</UCPThidden>
</Item>
</iLonItem>
</List>
The List function returns a list of <Item> elements for each Virtual channel defined on the
SmartServer. You could use the list of <Item> elements returned by this function as input for the Get
function. The Get function would then return the configuration of each Virtual channel included in the
list. The next section describes the properties included in each of these elements.
17.1.2
Using the Get Function on Virtual Channels
You can use the Get function to retrieve the configuration of a Virtual channel defined on the
SmartServer. The input parameters you supply to this function will include one or more <Item>
elements with a Virtual_Channel_Cfg type. Each <Item> element will include the <UCPTname> of
each channel whose configuration is to be returned by this function, as shown in the example below.
Request
<Get xmlns="http://wsdl.echelon.com/web_services_ns/ilon100/v4.0/message/">
<iLonItem>
<Item xsi:type="Virtual_Channel_Cfg">
<UCPTname>Net/Virtual Channel</UCPTname>
</Item>
</iLonItem>
</Get>
Response
<Get xmlns="http://wsdl.echelon.com/web_services_ns/ilon100/v4.0/message/">
<iLonItem>
Przeglądanie stron 283
1 2 ... 279 280 281 282 283 284 285 286 287 288 289 ... 442 443

Komentarze do niniejszej Instrukcji

Brak uwag