Channel.Action

Description

Returns or sets the type of action to perform with the channel (one of the values from the siChannelAction enum).

C# Syntax

// get accessor

siChannelAction rtn = Channel.Action;

// set accessor

Channel.Action = siChannelAction;

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)

oChannel.Action = siChannelActionDrive

logmessage "The channel 1 action type is? " & oChannel.Action