DIAdem Help

Content Type
Programming Language
Current manual
Table of Contents

Command: ChnAdd

Display all  Hide all

Command: ChnAdd

Adds two or more channels.

Set ChnResult = ChnAdd(Y, CALCYChn, ResultChannel)

Input Parameters

Y Specifies the data channel with the values you want to add.
CALCYChn Specifies the data channels containing the y-values of the signal.
ResultChannel Specifies the result channel.

Return Parameters

ChnResult Contains the result channel. ElementList <Data> type return value.

Example

The following example adds the channel Group1/Channel1 to the channels whose names start with the text Channel in the first group of the Data Portal and to all channels of the second group. DIAdem saves the result channel name in the MyMultpleResultChn variable.

VBScriptPython

 

Dim oMyChannelList, MyMultipleResultChn
Set oMyChannelList = Data.GetChannels("[1]/Channel*")
Call oMyChannelList.Add(Data.Root.ChannelGroups(2))
MyMultipleResultChn = ChnAdd("Group1/Channel1", oMyChannelList,"Added")

Related Topics

Command: ChnDiv | Command: ChnMul | Command: ChnSub

Was this information helpful?