DIAdem Help

Content Type
Programming Language
Current manual

Collection: Properties <DataPlugin>

Collection: Properties <DataPlugin>

A collection of all properties for the Root object, for the ChannelGroup object, or for the Channel object. The properties include the base properties of the data model and user-defined custom properties. You can use the Properties collection to delete or to add properties.

The following example assigns two new values to the root object.

Call Root.Properties.Add("DateTime",CreateTime(2004,6,12,12,17,55,0,0,0))
Call Root.Properties.Add("Author","CK")

The following example generates a waveform channel with the appropriate channel properties, in the MyChnGroup channel group.

Dim oChannelGroup: Set oChannelGroup = Root.ChannelGroups.Add("MyChnGroup")
Dim oBlock: Set oBlock = oFile.GetStringBlock()
Dim oMyChn: Set oMyChn = oBlock.Channels.Add("Temperature",eR64)
Call oMyChn.Properties.Add("unit_string", "°C")
Call oMyChn.Properties.Add("wf_xname", "Time")
Call oMyChn.Properties.Add("wf_xunit_string", "h")
Call oMyChn.Properties.Add("wf_start_offset", 0)
Call oMyChn.Properties.Add("wf_increment", 1)
Call oChannelGroup.Channels.AddDirectAccessChannel(oChn)

Properties

Count

Was this information helpful?