DIAdem Help

Method: Item for Channels <DataPlugin>

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

Method: Item for Channels <DataPlugin>

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

Set oAbstractChannel = Object.Item(ChnNameorIndex)
ObjectChannels <DataPlugin>
Object with this method
ChnNameorIndexVariant
Specifies the name or the index of the required channel.
oAbstractChannelAbstractChannel
Returned object

The following example creates the Offset channel property if the third channel in the FirstChnGroup channel group is an implicit channel:

Dim oMyGrp, oMyChn
Set oMyGrp = Root.ChannelGroups.Item("FirstChnGroup")
Set oMyChn = oMyGrp.Channels.Item(3)
If oMyChn.IsKindOf(eImplicit) Then
  Call oMyChn.Properties.Add("Offset",-5)
End If

Log in to get a better experience