DIAdem Help

Method: AddImplicitChannel for Channels <DataPlugin>

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

Method: AddImplicitChannel for Channels <DataPlugin>

Adds an object to the Channels collection and returns an ImplicitChannel object.

Set oImplicitChannel = Object.AddImplicitChannel(sName, StartValue, Increment, Size, eDataType)

ObjectChannels <DataPlugin>
Object with this method
sNameString
Specifies the name of the channel.
StartValueVariant
Specifies the start value of the channel.
IncrementVariant
Specifies the step width of the channel.
SizeLongInteger
Specifies the number of values of an implicit channel.
eDataType Specifies the data type of the channel.
Enumeration with the following selection terms:
2 eI16 16-bit integer values
3 eI32 32-bit integer values
9 eR32 32-bit real values
10 eR64 64-bit real values
oImplicitChannelImplicitChannel
Returned object
Note  The channel name must be unique and must not include special characters.
Note  The parameters StartValue and Increment must be the same data type.

The following example generates an implicit channel ImplChannel in the MyChnGroup channel group. The channel contains 100 values, begins with the value 0, and has a step width of 10. The channel has Integer type data.

Set oMyGrp = Root.ChannelGroups.Add("MyChnGroup")
Call oMyGrp.Channels.AddImplicitChannel("Implchannel", 0, 10, 100, eI32)

Log in to get a better experience