DIAdem Help

Method: AddCharacteristics for DirectAccessChannel

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

Method: AddCharacteristics for DirectAccessChannel

Specifies the characteristic values of a DirectAccessChannel.

Object.AddCharacteristics(Minimum, Maximum, Monotony, NoValueKey)
ObjectDirectAccessChannel
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 sets the characteristic values for the channel.


Dim rMin : rMin = File.GetNextBinaryValue(eR32)
Dim rMax : rMax = File.GetNextBinaryValue(eR32)
Call File.GetNextLine

Dim oBlock: Set oBlock = File.GetBinaryBlock()
Dim oChn  : Set oChn   = oBlock.Channels.Add("MyChannel",eR64)
oChn.AddCharacteristics(rMin,rMax,eMonotonyUnknown,eNovalueKeyNotCalculated)
Dim oMyGrp: Set oMyGrp = Root.ChannelGroups.Add("Measurements") 
Call oMyGrp.Channels.AddDirectAccessChannel(oChn)

Log in to get a better experience