9 Using the
Inspection
Tools: Analysis Tools
Analysis tools include Math, Measure, and Logic.
Click a tool on Tools & Results or Tools Only to access the Parameters pane for that tool.
9.1
Math Tool
Use the Math tool to perform basic
arithmetic
and inequality expressions, and to calculate
statistical
information
for
inspections.
The Math tool takes one or more pieces of
information
from the tool data or from user-supplied constants and makes
mathematical
expressions out of them. The results of the Math tool's analysis are displayed in Tools & Results and All Results.
The inputs to the Math tool are called operands. The
operation
is the
mathematical
expression used on the operands.
In general, a
user-defined
constant can be selected as one of the operands for the Math tool. This allows for a number of things,
including scaling the output of a vision tool in real units (by dividing that output by a known conversion factor). Dynamic scaling of
outputs is also possible by dividing one operand by another and then
multiplying
by a constant conversion factor. In this case, two Math
tools would be used: one set for division, the other for
multiplication.
The output of the
first
Math tool would be an operand for the
second Math tool.
Example
application:
Add advanced logic to an
inspection
using
arithmetic
or inequality expressions.
9.1.1 Math Tool: Input Parameters
Use the Input parameters to
configure
how the tool analyzes an image.
Figure 251. Math Tool—Input Parameters
Operator
Select the type of
mathematical
expression used for the
inspection
operator.
Figure 252. Operator
Table 2: Single Operand
Operations
Single operand
operations
require one input.
Operator
Summary
Description
ABS {A}
ABS(1) = 1
The absolute value of an operand is its unsigned magnitude. For
example, ABS(-1.5) and ABS(1.5) both return 1.5
SQRT {A}
SQRT(1) = 1
The square root of the operand
Table 3: Dual Operand
Operations
Dual operand
operations
require two inputs (operand A and operand B). For each operand, specify the tool (or a constant) and the
specific
attribute
of interest for that tool.
VE Series Smart Camera
126
www.bannerengineering.com - Tel: 763.544.3164