Property: Properties for AbstractChannel
- Updated2024-09-12
- 1 minute(s) read
DataPlugin > Properties > Property: Properties for AbstractChannel
Property: Properties for AbstractChannel
Contains the Properties collection associated with a channel.
Set oProperties = Object.Properties
Object | AbstractChannel Object with this property |
oProperties | Properties <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