DIAdem Help

Method: AddCharacteristics for Channel <DataPlugin>

  • Updated2024-09-12
  • 1 minute(s) read

Method: AddCharacteristics for Channel <DataPlugin>

Specifies the characteristic values of a channel.

Object.AddCharacteristics(Minimum, Maximum, Monotony, NoValueKey)
ObjectChannel <DataPlugin>
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 creates the channel MyChannel in the Measurements channel group and then sets the characteristic values for the channel.


Dim oMyGrp : Set oMyGrp = Root.ChannelGroups.Add("Measurements")
Dim oMyChn : Set oMyChn = oMyGrp.Channels.Add("MyChannel",eR32)
Dim i
For i = 1 to 100
  oMyChn.Values(i) = cdbl(i/100000)
Next
Call oMyChn.AddCharacteristics(1/100000,1/1000,eMonotonyIncreasing, eNoValueKeyNo)

Log in to get a better experience