Method: AddCharacteristics for DirectAccessChannel
- Updated2024-09-12
- 1 minute(s) read
DataPlugin > Methods > Method: AddCharacteristics for DirectAccessChannel
Method: AddCharacteristics for DirectAccessChannel
Specifies the characteristic values of a DirectAccessChannel.
Object.AddCharacteristics(Minimum, Maximum, Monotony, NoValueKey)
| Object | DirectAccessChannel 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 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)