Collection: DirectAccessChannels
- Updated2024-09-12
- 1 minute(s) read
(BinaryBlock | Collections | FixedWidthBlock | StringBlock) > Collection: DirectAccessChannels
Collection: DirectAccessChannels
Collection of all DirectAccess channels. You can use the DirectAccessChannels collection to delete or to add DirectAccess channels.
The following example reads a text file that contains one time channel and one real channel. The example then generates a channel group and binds the two channels.
Dim oBlock : Set oBlock = File.GetStringBlock() Dim oChn1 : Set oChn1 = oBlock.Channels.Add("Time", eTime) Dim oChn2 : Set oChn2 = oBlock.Channels.Add("YShift", eR64) Dim oMyGrp : Set oMyGrp = Root.ChannelGroups.Add("MyChannelGroup") Call oMyGrp.Channels.AddDirectAccessChannel(oChn1) Call oMyGrp.Channels.AddDirectAccessChannel(oChn2)