DIAdem Help

Object: Channel <Data>

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

Object: Channel <Data>

The Channel object provides a channel and the associated Properties in the script interface for internal data. The Channel object is an element of the Channels collection.

The following example creates a new channel group, inserts a channel into the channel group, and fills this channel with values:

VBScriptPython

 

Dim oMyGrp, oMyChn, i
Set oMyGrp = Data.Root.ChannelGroups.Add("MyChannelGroup")
Set oMyChn = oMyGrp.Channels.Add("MyChannel",DataTypeFloat64)
For i = 1 to 100
  oMyChn(i) = CDbl(i/100000)
Next

Log in to get a better experience