Device.Channel
 
 
 

Device.Channel

Description

Returns the Channel in the device driver specified by the Device.ID.

C# Syntax

// get accessor
Channel Device.get_Channel( UInt32 in_channelID );

Parameters

Parameter Type Description
ID String Identifer of the channel to return.

Examples

VBScript Example

Application.Devices.enable = true
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 First Channel is " & oChannel