Method: AddImplicitChannel for Channels <DataPlugin>
- Updated2024-09-12
- 2 minute(s) read
DataPlugin > Methods > Method: AddImplicitChannel for Channels <DataPlugin>
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)
| Object | Channels <DataPlugin> Object with this method | ||||||||||||
| sName | String Specifies the name of the channel. | ||||||||||||
| StartValue | Variant Specifies the start value of the channel. |
||||||||||||
| Increment | Variant Specifies the step width of the channel. |
||||||||||||
| Size | LongInteger Specifies the number of values of an implicit channel. |
||||||||||||
| eDataType | Specifies the data type of the channel. Enumeration with the following selection terms:
| ||||||||||||
| oImplicitChannel | ImplicitChannel 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)