DIAdem Help

Method: Item for DirectCellChannels

  • Updated2024-09-12
  • 1 minute(s) read

Method: Item for DirectCellChannels

Returns the DirectAccessChannel object associated with a specific name or with a specific index.

Set oDirectAccessChannel = Object.Item(DAChnNameOrIndex)
ObjectDirectCellChannels
Object with this method
DAChnNameOrIndexVariant
Specifies the name or the index of the required channel.
oDirectAccessChannelDirectAccessChannel
Returned object

The following example adds the existing DirectAccess channels to the MyChnGroup channel group:

Dim ChannelGroup : Set ChannelGroup = Root.ChannelGroups.Add("MyChnGroup")
Dim i
For i = 1 to oCellBlock.Channels.Count
 Call ChannelGroup.Channels.AddDirectAccessChannel(oCellBlock.Channels.Item(i))
Next