DIAdem Help

Property: Properties for Channel <DataPlugin>

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

Property: Properties for Channel <DataPlugin>

Contains the Properties collection associated with a Channel object.

Set oProperties = Object.Properties
ObjectChannel <DataPlugin>
Object with this property
oPropertiesProperties <DataPlugin>
Returned object

The following example checks all channel properties of the third channel from the first channel group. The example creates the channel property Sensor_Type if this property does not exist.

Dim oMyProp, oMyChn, bFound
Set oMyChn = Root.ChannelGroups(1).Channels(3)
For Each oMyProp in oMyChn.Properties
  If oMyProp.Name = "Sensor_Type" Then
    bFound = TRUE
  End If
Next
If not bFound Then
  Call oMyChn.Properties.Add("Sensor_type","TC-N")
End If