Method: Add for ChannelGroups <DataPlugin>
- Updated2024-09-12
- 1 minute(s) read
DataPlugin > Methods > Method: Add for ChannelGroups <DataPlugin>
Method: Add for ChannelGroups <DataPlugin>
Adds an object to the ChannelGroups collection and returns a ChannelGroup object.
Set oChannelGroup = Object.Add(sName)
| Object | ChannelGroups <DataPlugin> Object with this method |
| sName | String Specifies the name of the channel group. |
| oChannelGroup | ChannelGroup <DataPlugin> Returned object |
| Note The name of the channel group must be unique and must not include special characters. |
The following example first deletes all channel groups and then generates the MyChnGroup channel group:
Call Root.ChannelGroups.RemoveAll() Call Root.ChannelGroups.Add("MyChnGroup")