DIAdem Help

Object: ChannelGroup <DataPlugin>

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

Object: ChannelGroup <DataPlugin>

The ChannelGroup object provides a channel group including the associated channels and properties.

The following example deletes all channel groups and creates a new channel group with custom properties. The example then inserts a channel into the channel group and fills the channel with values.

Call Root.ChannelGroups.RemoveAll
Dim oMyGrp : Set oMyGrp = Root.ChannelGroups.Add("MyChannelGroup")
Call oMyGrp.Properties.Add("Time",CreateTime(2004,6,12,10,0,0,0,0,0))
Call oMyGrp.Properties.Add("Tester","CK")
Dim oMyChn : Set oMyChn = oMyGrp.Channels.Add("MyChannelNum",eR32)
Dim i
For i = 1 to 100
  oMyChn.Values(i) = cdbl(i/100000)
Next

Properties

Channels | Name | Properties | Root