Channel.ID
 
 
 

Channel.ID

Description

Returns or sets an Integer representing the identifier of the channel. The channel identifier is a sequential number that identifies the channel in the collection of channels contained by the Device.

C# Syntax

// get accessor
Int32 rtn = Channel.ID;

Examples

VBScript Example

Application.Devices.enable = true
' first add the device if it is not there yet
set oDevice = Application.Devices.Item("PC1600")
If TypeName (oDevice) = "Nothing" Then
set oDevice = Application.Devices.AddDevice( "PC1600" )
End If
set oChannel = oDevice.Channel(1)
logmessage "The channel 1 ID is? " & CSng(oChannel.ID)