Method: Add for ChannelGroups <Data>
- Updated2024-09-12
- 1 minute(s) read
Internal Data > Methods > Method: Add for ChannelGroups <Data>
Method: Add for ChannelGroups <Data>
Creates a new channel group in the script interface for internal data and adds the channel group to the ChannelGroups collection. The Add method returns a ChannelGroup object.
Set oChannelGroup = Object.Add(Name, [DestIndex])
Object | ChannelGroups <Data> Object with this method |
Name | String Specifies the name of the channel group. The name must conform to the DIAdem naming conventions for channel groups. If the name does not conform to the name conventions, DIAdem corrects the name. |
[DestIndex] | LongInteger Specifies the position of the new channel group in the collection of existing channel groups. If you do not specify the DestIndex parameter, DIAdem creates the new channel group at the end of the collection. |
oChannelGroup | ChannelGroup <Data> Returned object |
The following example first deletes all channel groups and then generates the MyChnGroup channel group:
VBScript | Python |
Call Data.Root.ChannelGroups.RemoveAll() Call Data.Root.ChannelGroups.Add("MyChnGroup")