Property: Properties for Channel <Data>
- Updated2024-09-12
- 1 minute(s) read
Internal Data > Properties > Property: Properties for Channel <Data>
Property: Properties for Channel <Data>
Contains the Properties collection that is associated with a ChannelGroup object in the script interface for internal data.
Set oProperties = Object.Properties
Object | Channel <Data> Object with this property |
oProperties | Properties <Data> Returned object |
![]() | Note Refer to Properties in DIAdem - Overview for information about properties of files, groups, and channels. |
The following example checks all the properties of the channels in the first channel group. The example creates the channel property Sensor_Type if the property does not exist:
VBScript | Python |
Dim oMyChn, oMyProp, bFound For Each oMyChn in Data.Root.ChannelGroups(1).Channels If oMyChn.Properties.Exists("Sensor_Type") Then bFound = TRUE Else Call oMyChn.Properties.Add("Sensor_Type","TC-N") End If Next