DIAdem Help

Method: Item for ChannelGroups <DataPlugin>

  • Updated2024-09-12
  • 1 minute(s) read

Method: Item for ChannelGroups <DataPlugin>

Returns the ChannelGroup object associated with a specific name or with a specific index.

Set oChannelGroup = Object.Item(GrpNameOrIndex)
ObjectChannelGroups <DataPlugin>
Object with this method
GrpNameOrIndexVariant
Specifies the name or the index of the required channel group.
oChannelGroupChannelGroup <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