Command: ChnStatisticsBlockCalc
- Updated2024-09-12
- 4 minute(s) read
Command: ChnStatisticsBlockCalc
Command: ChnStatisticsBlockCalc
Calculates characteristic statistical values rowwise.
Input Parameters
ChnList1 |
Specifies one or more channels. |
StatsSelection |
Specifies which statistical characteristic values to calculate. |
[StatsStartIndex] |
Specifies the start row of the channel to be evaluated. The default value is NoValue which means that DIAdem starts from the first row. |
[StatsEndIndex] |
Specifies the end row of the channel to be evaluated. The default value is NoValue, which specifies that DIAdem uses the channel length. |
[StatsUsePopulationFormula] |
Specifies whether DIAdem calculates the characteristic values based on the population or on the sample. If the value is False, DIAdem calculates the characteristic values based on samples. The default value is False. |
[StatsResultChn] |
Specifies whether DIAdem stores the statistics results in data channels. The default value is False. |
[StatsResultChnNames] |
Specifies whether DIAdem stores the input channel names of the descriptive statistics in a text channel. The default value is False. |
[StatsResultChnNameFormat] |
Specifies how DIAdem stores the input channel names of the descriptive statistics in a text channel. The default value is False. |
Return Parameters
| ChnResult | Contains the result channel or the result channels with the characteristic values. ElementList <Data> type return value. |
![]() | Refer to the help page Statistical Characteristic Values in DIAdem for mathematical details. |
The following example calculates the statistical parameters minimum, maximum, and arithmetic mean for the channels of the fourth channel group starting with temperature and outputs the name of the first result channel and its first value.
| VBScript | Python |
Dim MyChannels Set MyChannels = Data.GetChannels("[4]/Temperature*") Set ChnResult = ChnStatisticsBlockCalc(MyChannels, eStatsMinimum + eStatsMaximum + eStatsArithmeticMean,,,,True) Call Msgbox(ChnResult.Item(1).Name & ": " & ChnResult.Item(1).Values(1))
Dialog Box Call
Call SUDDlgShow("Main", ResourceDrv & "AnaChnStatisticsChannel_BlockCalc")


