DIAdem Help

Property: Count for BinaryDirectAccessChannels

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

Property: Count for BinaryDirectAccessChannels

Returns the number of elements in a BinaryDirectAccessChannels collection.

Object.Count
ObjectBinaryDirectAccessChannels
Object with this property
Object.CountLongInteger with read access

The following example creates two channels for a BinaryBlock and inserts these DirectAccess channels into the MyChannelGroup channel group:

Dim oBlock : Set oBlock = File.GetBinaryBlock()
Call oBlock.Channels.Add("Channel1",eI32)
Call oBlock.Channels.Add("Channel2",eI32)
Dim ChannelGroup : Set ChannelGroup = Root.ChannelGroups.Add("MyChannelGroup")
Dim i
For i = 1 to oBlock.Channels.Count
 Call ChannelGroup.Channels.AddDirectAccessChannel(Block.Channels.Item(i))
Next