Command: ChnAverage
- Updated2024-09-12
- 2 minute(s) read
Command: ChnAverage
Command: ChnAverage
Calculates the arithmetic means of the single values of several data channels.
Input Parameters
![]() |
Specifies one or more channels. |
ResultChannel | Specifies the result channel. |
Return Parameters
ChnResult | Contains the result channel. ElementList <Data> type return value. |
![]() | Note If you want to use waveform channels in this command, follow rule 2.3 for calculating with waveform channels. |
DIAdem calculates the mean rowwise. Each value in the result channel is the arithmetic mean of the values from the same row in all the input channels. The result channel is as long as the shortest input channel.
Examples
The following example calculates linewise the mean value of the channels Group/Channel2 to Group/Channel4.
The following example calculates linewise the mean value of the channels whose names start with the text Channel in the first group of the Data Portal and of all channels in the second group, and saves the result in the Average channel.
VBScript | Python |
Dim oMyChannelList Set oMyChannelList = Data.GetChannels("[1]/Channel*") Call oMyChannelList.Add(Data.Root.ChannelGroups(2)) Call ChnAverage(oMyChannelList, "[1]/Average")
Dialog Box Call
Call SUDDlgShow("Main", ResourceDrv & "AnaChnAverage")
Related Topics
Command: ChnConvertTextToAssignment | Command: ChnDeriveCalc | Command: ChnDetrendCalc | Command: ChnDifferentiate | Command: ChnEnclosedArea | Command: ChnIntegrate | Command: ChnMirror | Command: ChnMultipleSort | Command: ChnNormalize | Command: ChnNovHandle | Command: ChnOptimizeDataType | Command: ChnPeakFind | Command: ChnPhaseUnwrap | Command: ChnPhaseWrap | Command: ChnRangeLimit | Command: ChnRelativize | Command: ChnRMS | Command: ChnRound | Command: ChnSum