Channel.IsConnected
 
 
 

Channel.IsConnected

Description

Returns True if the channel is connected to a valid device.

C# Syntax

Boolean Channel.IsConnected();

Scripting Syntax

oBoolean = Channel.IsConnected();

Return Value

Boolean

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 channel 1 is connected? " & oChannel.isConnected