Method: AddProcessedChannel for Channels <DataPlugin>
- Updated2024-09-12
- 2 minute(s) read
DataPlugin > Methods > Method: AddProcessedChannel for Channels <DataPlugin>
Method: AddProcessedChannel for Channels <DataPlugin>
Adds an object to the Channels collection and returns a ProcessedChannel object.
This method facilitates the generation of a channel to which further channels can be added or appended.
Set oProcessedChannel = Object.AddProcessedChannel(NameOrChannel, eProcessingType, ProcessingType)
Object | Channels <DataPlugin> Object with this method | ||||||
NameOrChannel | Variant Specifies the name of the channel or any channel | ||||||
eProcessingType | Variant Specifies the data type of the channel.
| ||||||
ProcessingType | Variant Specifies the type of channel processing.
| ||||||
oProcessedChannel | ProcessedChannel Returned object |
![]() | Note The channel name must be unique and must not include special characters. |
The following example generates a new channel MyChannel in the Measurements channel group. The channel contains the values added rowwise of the second, third, and fourth channels of the Measurements channel group.
Dim oChannelGroup, oProcessedChn, i Set oChannelGroup = Root.ChannelGroups("Measurements") Set oProcessedChn = oChannelGroup.Channels.AddProcessedChannel("MyChannel",eR64,eAddProcessor) For i = 2 to 4 oProcessedChn.Channels.Add(oChannelGroup.Channels(i)) Next