Device.Channels
 
 
 

Device.Channels

Description

Returns a ChannelCollection containing each Channel defined by the device.

C# Syntax

// get accessor
ChannelCollection rtn = Device.Channels;

Examples

VBScript Example

Application.Devices.enable = true
set oDevice = Application.Devices.Item("Mouse")
If TypeName (oDevice) = "Nothing" Then
set oDevice = Application.Devices.AddDevice( "Mouse" )
End If
set oChannels = oDevice.Channels
for each oChannel in oChannels
         logmessage "Channel: " & oChannel
next