Property: Properties for ImplicitChannel
- Updated2024-09-12
- 1 minute(s) read
DataPlugin > Properties > Property: Properties for ImplicitChannel
Property: Properties for ImplicitChannel
Contains the Properties collection associated with an implicit channel.
Set oProperties = Object.Properties
| Object | ImplicitChannel Object with this property |
| oProperties | Properties <DataPlugin> Returned object |
The following example checks all channel properties of an implicit channel from the first channel group. The example creates the channel property Sensor_Type if this property does not exist.
Dim oMyChn, oMyProp, bFound For Each oMyChn in Root.ChannelGroups(1).Channels If oMyChn.IsKindOf(eImplicit) Then 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 End If Next