DIAdem Help

Connecting Channels and Values in Calculations

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

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

  2. Click Calculation Manager on the toolbar.

  3. Click New to delete the current calculation set.

  4. Click Add Calculation to create a new calculation.

  5. Enter the name of the calculation in the subdialog box, for example, Offset correction.

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

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

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

  9. Enter Offset as the Name, select Value as the Data Type, and click the input field in the Reference column to specify the value.

  10. 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.

  11. Click Add Output in the outputs area to create an output for the calculation.

  12. Enter NewChannel as the Name, select Channel as the Data Type, and select the channel [1]/Offset correction as the Reference.

  13. Enter the Formula that calculates the offset correction:
    NewChannel = Channel-Offset.

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

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

  16. Click Execute to run the calculation.
    In the first channel group, DIAdem generates the channel Offset correction which contains the result of the calculation.

  17. Click OK to close the dialog boxes.