DIAdem Help

Calculation Manager - Edit Calculation - Calculation

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

Calculation Manager - Edit Calculation - Calculation

Use this dialog box to create or to edit a calculation.

You can use calculations to execute mathematical operations on channels and single values with a single-line formula. You can use all calculator functions and all active user commands in the formula.

Settings

Toolbar

Description Specifies the calculation description.
Validation Successful Checks whether DIAdem can execute the calculation. DIAdem displays the test result as a message.
Validation Unsuccessful
Run Executes the calculation. If DIAdem generates result channels, the channels are in the Data Portal.
Run and Store in Calculation Channel Runs the calculation and stores the result in a calculation channel.

Calculation Definition

  Name Specifies the calculation name.
  Formula Specifies the calculation rule. Define a formula as follows:
Output = Input1 Operator Input2
Example: Result = Input1 * Input2

In a formula you can only use the inputs and outputs that reference values and channels. You must define the formula in one line. To define a multi-line calculation rule, click Script and create a calculation script.

  View Displays the equation template in mathematical syntax.

DIAdem identifies the operands and operators which cannot be interpreted with a red frame.

  Quantity-based Specifies that DIAdem executes the calculation quantity-based. Refer to the Help page Calculating Quantity-Based and Non-Quantity-Based in DIAdem for the conditions and rules for quantity-based calculations.
  Result unit Specifies the unit of the result.
Input Help for Unit Symbols Opens the dialog box where you can select a new unit and a new unit symbol.

Toolbars for Inputs and Outputs

Add Input/Output Creates a new entry in the list of inputs or outputs.
Delete Input/Output Deletes the selected input or output.
Move Input/Output Up Moves the selected input or output up one position.
Move Input/Output Down Moves the selected input or output down one position.

Inputs

  Name Specifies the name of the input. You use the name of an input as a symbol in the formula.
  Dependency Contains a message as to whether the input is dependent on an output from another calculation. Click into the table entry to open the dialog box where you define the dependency of an input on an output of another calculation.
  Optional Input Specifies that DIAdem uses the input when validating the calculation rule. Click into this table entry to flag the input as optional.
  Data type Specifies the data type of the input. An input can refer to a value, a channel, or a channel list.
  Reference Contains details on the value, the channel, or the channel list that the input refers to. Click the table entry to open the dialog box where you define the Value reference or the Channel list reference of the input.

Outputs

  Name Specifies the name of the output. You use the name of an output as a symbol in the formula.
  Optional Output Specifies that DIAdem uses the output when validating the calculation rule. Click into this table entry to flag the output as optional.
  Data type Specifies the data type of the output. An output can refer to a value, a channel, or a channel list.
  Reference Contains details on the value, the channel, or the channel list that the output refers to. Click the table entry to open the dialog box where you define the Value reference or the Channel list reference of the output.
  Message Indicates whether DIAdem can execute the calculation.

Further Settings

Calculation Manager | Run Calculation | Edit Calculation»Calculation | Edit Calculation»Script | Add Calculation Group | Debug Dependent Pre-Calculations | Debug Dependent Post-Calculations

Log in to get a better experience