Logic Calculator Controls

NI Vision Builder

Use Additional Tools

Logic Calculator Controls

The following controls are available on the property page for the step.

Control Name Description
Step Name Name to give the step.

Operands

Control Name Description
First Operand Specifies the measurement or variable to use for a pass/fail decision. Use the following controls to specify the value to use in the expression:
  • Source—Step or variable to use in the expression.
  • Measure—Measurement or variable value to use in the expression.
  • Current Value—Displays the current value of the selected measurement or variable.
Operator Specifies the condition that the second operand must meet for the expression to be true.
Second Operand Specifies the value to which you want to compare to the First Operand. The following options are available:
  • Constant—Specific value to compare to the First Operand.
  • Source—Step or variable to use in the expression.
    • Measure—Measurement or variable value to use in the expression.
    • Current Value—Displays the current value of the selected measurement or variable.
Add Adds the expression to the end of the Expression table.
Insert Inserts the expression before the selected expression.
Replace Applies a change to the selected expression.
Result Displays the boolean result of the operation between the first operand and the second operand.

Expression

Control Name Description
Expression Table Lists the expressions to consider in a pass/fail decision. The following information is displayed for each expression:
  • First Operand—Measurement on which you want to base a pass fail decision.
  • NOT—Indicates that the Operator is negated.
  • Operator—Condition that Operand 2 must meet in order for the expression to be true.
  • Second Operand—Value to which the operator compares the First Operand.
  • Result—Boolean result of the operation between the First Operand and the Second Operand.
  • AND/OR—Displays the logical operator used to combine two expressions.
Logic Result Displays the boolean result of the complete expression.
AND/OR Changes the logical operator used to combine two expressions.
Negate Logically negates the selected expression.
() Combines the selected expressions so that the step considers them as one logical unit.
Delete Removes the selected expression from the Expression table.

Mode

Control Name Description
Mode Specifies how the result of the step is determined. The following options are available:
  • Step passes inspection when Logic Result is TRUE—Logic Calculator step result is based on the Logic Result.
  • Step passes inspection if the Logic Result can be evaluated—Logic Calculator step passes if the decision can be evaluated, regardless of the result of the evaluation. Select this mode when you want to classify parts based on the result of one or many Logic Calculator steps.
  • Step Status—Pass/fail decision of the step. If This step passes inspection when Logic Result is TRUE is selected, Step Status is always TRUE (pass), unless one expression refers to a measurement that could not be evaluated.