DIAdem Help

Content Type
Programming Language
Current manual
Table of Contents

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)
ObjectProcessedChannel
Object with this method
MinimumDouble
Specifies the smallest value of the channel.
MaximumDouble
Specifies the greatest value of the channel.
MonotonySpecifies whether the channel values are monotone increasing or decreasing.
Enumeration with the following selection terms:
 1
eMonotonyUnknown 
Not calculated
 2
eMonotonyIncreasing 
Increasing
 3
eMonotonyDecreasing 
Decreasing
 4
eMonotonyNo 
Not monotone
NoValueKeySpecifies whether a channel contains NoValues.
Enumeration with the following selection terms:
 1
eNoValueKeyNotCalculated 
Not calculated
 2
eNoValueKeyYes 
Yes
 3
eNoValueKeyNo 
No

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)
In This Section
Was this information helpful?