
CHAPTER
5
BenchMike Pro 2025/2050 & Z-Mike Pro 4025/4050 Instruction Handbook: Advanced Capabilities
5-1
5 Advanced Capabilities
5.1
Expression Editor
The Expression Editor allows you to compute values based
on data collected by the BenchMike Pro. Each expression you
define is linked to the Feature in which it is created.
As shown on the screen to the right, you can copy, cut, edit,
delete, insert, paste, move, and restore the expression from
factory defaults.
To access this page, select the Setup icon, then Measure-
ment, and then Expression.
Expressions are evaluated when the Feature containing the expression is placed in Go mode.
Here are two examples of valid expressions:
f1.size = seg[2] + f1.size.offset
f1.pos = (seg[1] - seg[3]) / 2.0
5.1.1
Components of the Expressions
5.1.1.1
Operators
Operators are evaluated in order of precedence. Multiplication and division have higher precedence than addition
and subtraction and are therefore evaluated first. Where operators have equal precedence, the expression is
evaluated from left to right.
Precedence
Operator
Description
8 (highest)
( or )
Parenthetical expression
7
+ or -
Unary plus and minus (for example, -4)
6
* or /
Multiplication and division
5
+ or -
Addition and subtraction
4
< or
Less-than, less-then-equal, greater-than,
and greater-than-equal