Method: Item for ChannelGroups <DataPlugin>
- Updated2024-09-12
- 1 minute(s) read
DataPlugin > Methods > Method: Item for ChannelGroups <DataPlugin>
Method: Item for ChannelGroups <DataPlugin>
Returns the ChannelGroup object associated with a specific name or with a specific index.
Set oChannelGroup = Object.Item(GrpNameOrIndex)
| Object | ChannelGroups <DataPlugin> Object with this method |
| GrpNameOrIndex | Variant Specifies the name or the index of the required channel group. |
| oChannelGroup | ChannelGroup <DataPlugin> Returned object |
The following example searches for a specific channel in the third channel group and creates custom properties for that channel:
Dim oMyChn For Each oMyChn in Root.ChannelGroups.Item(3).Channels If oMyChn.Name = "Meas_Cal" then Call oMyChn.Properties.Add("Faktor", 5) Call oMyChn.Properties.Add("Offset", 50) End If Next