Using Channel Lists in Calculations
- Updated2024-09-12
- 2 minute(s) read
Mathematics > Using Channel Lists in Calculations
Using Channel Lists in Calculations
Use calculations to create and to execute templates for recurring, user-defined formulas. In these formulas you can execute functions on values, variables, and channels and store the results in channels or in variables. If you want to use several channels simultaneously in calculations, use channel lists in the formulas.
Complete the following steps to create a calculation that calculates the mean value of the single values from several data channels. Use in the calculation a channel list that contains the channels Temperature_1, Temperature_2, and Temperature_3.
![]() |
Note For this example, delete all the data in the Data Portal and load the data file Example.tdm from the user folder. |
Select DIAdem ANALYSIS.
-
Click Calculation Manager on the toolbar.
-
Click New to delete the current calculation set.
-
Click Add Calculation to create a new calculation.
-
Enter the name of the calculation in the subdialog box, for example, Mean value.
-
Click Add Input in the Inputs area to create an input for the calculation.
-
Enter List as the Name, select Channel list as the Data Type , and click the input field below Reference to specify the channel list.
-
Reference the temperature channels in the subdialog box. To do so, click Select from data store and select the three channels Temperature_1, Temperature_2, and Temperature_3. Click OK to close the dialog box.
-
Click Add Output in the Outputs area to create an output for the calculation.
-
Enter NewChannel as the Name , select Channel as the Data Type, and specify the channel Result/Mean as the Reference.
-
Click Extended to switch the calculation into the extended mode.
-
Enter the Calculation script which calculates the mean value:
Call ChnAverage(List, NewChannel) -
Click Validate to check whether DIAdem can execute the calculation.
-
Click Execute to run the calculation.
In the Data Portal DIAdem generates the channel group Result with the result channel Mean value. -
Click OK to close the dialog boxes.
