ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

DIAdem Help

Property: Name for Channel <DataPlugin>

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

Property: Name for Channel <DataPlugin>

Receives the name of a Channel object.

Object.Name
ObjectChannel <DataPlugin>
Object with this property
Object.NameString with read and write access

The following example searches for the Temp channel in all channels groups and creates the Sensor_Type channel property for this channel:

Dim i, oMyChn
For i = 1 to Root.ChannelGroups.Count
  For Each oMyChn in Root.ChannelGroups(i).Channels
    If oMyChn.Name = "Temp" Then
      Call oMyChn.Properties.Add("Sensor_Type","TC-J")
    End If
  Next
Next