Object: ChannelGroup <Data>
- Updated2024-09-12
- 1 minute(s) read
(AssignmentChannel | CalculationChannel | Channel | ChannelGroups | ComplexChannel | ElementList | ImplicitChannel | Property | Root | VideoChannel ) > Object: ChannelGroup <Data>
Object: ChannelGroup <Data>
The ChannelGroup object provides a channel group and the associated channels and Properties in the script interface for internal data. The ChannelGroup object is an element of the ChannelGroups collection.
The following example creates a new channel group, inserts a channel into the channel group, and fills this channel with values:
VBScript | Python |
Dim oMyGrp, oMyChn, i Set oMyGrp = Data.Root.ChannelGroups.Add("MyChannelGroup") Set oMyChn = oMyGrp.Channels.Add("MyChannel",DataTypeFloat64) For i = 1 to 100 oMyChn.Values(i) = CDbl(i/100000) Next
Properties
Channels | IsActive | Name | Properties | Root
Returned From
AssignmentChannel <Data>.ChannelGroup | CalculationChannel <Data>.ChannelGroup | Channel <Data>.ChannelGroup | ChannelGroups <Data>.Add | ChannelGroups <Data>.AddChannelGroup | ChannelGroups <Data>.Item | ComplexChannel <Data>.ChannelGroup | ElementList <Data>.Add | ElementList <Data>.Item | ImplicitChannel <Data>.ChannelGroup | Property <Data>.Element | Root <Data>.ActiveChannelGroup | VideoChannel <Data>.ChannelGroup