Logic Calculator FAQs

NI Vision Builder

Use Additional Tools

Logic Calculator FAQs

Q: When I click the () button, parentheses do not appear in the Expression table around the expressions I highlighted. Why?

You cannot set parentheses if the expressions you want to group contain an odd number of parentheses. For example, you cannot group a set of expressions if one of the members is already grouped with another set of expressions outside the set you want to group.

Q: When I select a set of parentheses and click the () button to remove them, why do the parentheses remain in the table?

If the opening and closing parentheses you select are not a pair, you cannot remove them.

Q: When would I use the second Mode in the Logic Calculator step?

The second Mode is useful when you need to classify objects and you want the Logic Calculator step to always pass. For example, assume you have Part A with one hole and Part B with two holes. Both Part A and Part B need to pass inspection if they meet all other inspection criteria.

You can create a Logic Calculator step that uses the second Mode so that the Logic Calculator step passes regardless of whether Part A or B is under inspection. You can use the Logic Result to qualify which class the part under inspection belongs to. The Logic Result value changes depending on the class of the part, but the Step Status equals PASS if all the data to make the decision is available.

Note  You need a Logic Calculator step for each class you need to identify.

Q: How can I select the Logic Calculator Step Results as the result for the entire inspection?

Select Tools»Configure Global Decision Making. In the Global Decision Making Setup dialog, select the Inspection Equals Specified Logic Calculator Step Result mode, and specify the appropriate Logic Calculator step.