Collection: BinaryDirectAccessChannels
- Updated2024-09-12
- 1 minute(s) read
(BinaryBlock | Collections | FixedWidthBlock | StringBlock) > Collection: BinaryDirectAccessChannels
Collection: BinaryDirectAccessChannels
Collection of all DirectAccess channels. You can use the BinaryDirectAccessChannels collection to delete or to add DirectAccess channels.
The following example reads out a binary file which contains two channels. The channel data is in blocks. A block is structured in a way that the first three values belong to the first channel and the fourth value belongs to the second channel. The example then generates a channel group and binds the two channels.
Dim oBlock : Set oBlock = File.GetBinaryBlock() Dim oChn1 : Set oChn1 = oBlock.Channels.Add("Channel1", eI32, 3) Dim oChn2 : Set oChn2 = oBlock.Channels.Add("Channel2", eI32, 1) Dim oMyGrp : Set oMyGrp = Root.ChannelGroups.Add("MyChannelGroup") Call oMyGrp.Channels.AddDirectAccessChannel(oChn1) Call oMyGrp.Channels.AddDirectAccessChannel(oChn2)
Properties
Returned From
BinaryBlock.Channels | FixedWidthBlock.Channels | StringBlock.Channels