Creating and Executing Calculations
- Updated2024-09-12
- 2 minute(s) read
Mathematics > Creating and Executing Calculations
Creating and Executing 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. You can use the saved calculation with a different configuration the next time you launch DIAdem.
To create and to execute a calculation, 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 Group to create a new calculation group.
-
Enter the name of the calculation group in the subdialog box, for example, Example, and click OK.
-
Click Add Calculation to create a new calculation.
-
Enter the name of the calculation in the subdialog box, for example, Power.
-
Click Add Input in the Inputs area to create an input for the calculation.
-
Enter n 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 M as the Name , select Channel as the Data Type, and select the channel [1]/Torque as the Reference.
-
Click Add Output in the Outputs area to create an output for the calculation.
-
Enter P as the Name , select Channel as the Data Type, and select the channel [1]/Power as the Reference.
-
Enter the Formula that calculates the power:
P = n*M -
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 Power which contains the result of the calculation. -
Click OK.
-
Click Save As in the calculation manager and save the current calculation set as Test.tca.
-
Click OK.
