DIAdem Help

Executing Channel Calculations in the Calculator

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

Executing Channel Calculations in the Calculator

Use the Calculator to mathematically analyze data with your own formulas. The Calculator is for calculating data channels, variables, and input values. DIAdem stores the results in data channels or variables. When you store data in data channels, you can generate new data channels or overwrite existing data channels.

For each value in the input channels, DIAdem calculates results according to the formula you enter in the Calculator. If the data channels in the calculation are different lengths, the result channel is the same length as the shortest data channel.

Complete the following steps to perform a mathematical calculation on a channel in the Calculator:

  1. Select DIAdem ANALYSIS.

  2. Click the Calculator.

  3. The following example shows how you specify data channels to multiply two data channels and to store the result values in one data channel. Enter the formula for channel calculation in the Formula entry field:

  • Ch("Example/Result") = Ch("Example/rpm (revs per minute)")*Ch("Example/torque")

    If the data channel Example/Result exists, DIAdem overwrites its values. If not, DIAdem creates the channel with the specified name, and stores the results in the channel.

  • Ch("[1]/[2]") = Ch("[1]/[3]")*Ch("[1]/[4]")

    If the second data channel exists in the first channel group, DIAdem overwrites its values. If not, DIAdem creates the data channel called Formula result, with the specified index, and saves the results in the data channel.

  1. Click Calculate after each entry.

Note  Use the Calculate command to run channel calculations in scripts.

Log in to get a better experience