Connecting Channels and Values in Calculations
- Updated2024-09-12
- 2 minute(s) read
Mathematics > Connecting Channels and Values in Calculations
Connecting Channels and Values 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.
To create a calculation template that executes an offset correction and connects a channel and a value, complete the following steps:
![]() |
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, Offset correction.
-
Click Add Input in the Inputs area to create an input for the calculation.
-
Enter Channel as the Name , select Channel as the Data Type, and select the channel [1]/Revs as the Reference.
-
Click Add Input in the Inputs area to create an input for the calculation.
-
Enter Offset as the Name, select Value as the Data Type, and click the input field in the Reference column to specify the value.
-
Reference in the subdialog box the minimum values of the Revs channel. To do so, select Property, the Data element Channel, the Reference [1]/Revs, and the Property name Minimum. Select the Property name Channel unit as the unit. 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 select the channel [1]/Offset correction as the Reference.
-
Enter the Formula that calculates the offset correction:
NewChannel = Channel-Offset. -
Select Quantity-based so that DIAdem includes the units of the input channels in the power calculation.
-
Click Validate to check whether DIAdem can execute the calculation.
-
Click Execute to run the calculation.
In the first channel group, DIAdem generates the channel Offset correction which contains the result of the calculation. -
Click OK to close the dialog boxes.
