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