Method: AddCharacteristics for ProcessedChannel
- Updated2024-09-12
- 1 minute(s) read
DataPlugin > Methods > Method: AddCharacteristics for ProcessedChannel
Method: AddCharacteristics for ProcessedChannel
Specifies the characteristic values of a channel which combines the values from other channels (ChannelsToProcess).
Object.AddCharacteristics(Minimum, Maximum, Monotony, NoValueKey)
Object | ProcessedChannel Object with this method | ||||||||||||
Minimum | Double Specifies the smallest value of the channel. | ||||||||||||
Maximum | Double Specifies the greatest value of the channel. | ||||||||||||
Monotony | Specifies whether the channel values are monotone increasing or decreasing. Enumeration with the following selection terms:
| ||||||||||||
NoValueKey | Specifies whether a channel contains NoValues. Enumeration with the following selection terms:
|
The following example generates the channel MyChannel in the Measurements channel group. The channel contains the values, which are added rowwise, of the 64-bit Real type DirectAccess channels from the Measurements channel group. The example then sets the characteristic values of the channel MyChannel.
Dim ChannelGroup: Set ChannelGroup = Root.ChannelGroups("Measurements") Dim ProcessedChn: Set ProcessedChn = ChannelGroup.Channels.AddProcessedChannel("MyChannel",eR64,eAddProcessor) Dim Channel For Each Channel in ChannelGroup.Channels If Channel.IsKindOf(eDirectAccess) and (Channel.DataType = eR64) Then Call ProcessedChn.Channels.Add(Channel) End If Next Call ProcessedChn.AddCharacteristics(0,1000,eMonotonyUnknown,eNoValueKyNotCalculated)