Channel.Enable
 
 
 

Channel.Enable

Description

Returns or sets a Boolean value indicating the the enable state of the channel. The enable state determines whether a channel is active or not.

C# Syntax

// get accessor
Boolean rtn = Channel.Enable;
// set accessor
Channel.Enable = Boolean;

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 is enabled? " & oChannel.Enable