DIAdem Help

Creating and Executing Calculations

  • Updated2024-09-12
  • 2 minute(s) read

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.
  1. Select DIAdem ANALYSIS.

  2. Click Calculation Manager on the toolbar.

  3. Click New to delete the current calculation set.

  4. Click Add Calculation Group to create a new calculation group.

  5. Enter the name of the calculation group in the subdialog box, for example, Example, and click OK.

  6. Click Add Calculation to create a new calculation.

  7. Enter the name of the calculation in the subdialog box, for example, Power.

  8. Click Add Input in the Inputs area to create an input for the calculation.

  9. Enter n as the Name , select Channel as the Data Type, and select the channel [1]/Revs as the Reference.

  10. Click Add Input in the Inputs area to create an input for the calculation.

  11. Enter M as the Name , select Channel as the Data Type, and select the channel [1]/Torque as the Reference.

  12. Click Add Output in the Outputs area to create an output for the calculation.

  13. Enter P as the Name , select Channel as the Data Type, and select the channel [1]/Power as the Reference.

  14. Enter the Formula that calculates the power:
    P = n*M

  15. Select Quantity-based so that DIAdem includes the units of the input channels in the power calculation.

  16. Click Validate to check whether DIAdem can execute the calculation.

  17. Click Execute to run the calculation.
    In the first channel group, DIAdem generates the channel Power which contains the result of the calculation.

  18. Click OK.

  19. Click Save As in the calculation manager and save the current calculation set as Test.tca.

  20. Click OK.