Multiple operand functions, Use of constants, Results – Banner PresencePLUS Pro COLOR—PROII Camera User Manual

Page 271: Math tool and the remote command channel (rcc)

Advertising
background image

Math tool outputs can be sent out via a Communications tool and/or used as an input to a Test tool (or another Math

tool).

Multiple Operand Functions

Returns Min (X

1

, X

2

, ..., X

n

).

Returns the operand with the lowest value.

Min (Minimum)

Returns Max (X

1

, X

2

, ..., X

n

).

Returns the operand with the highest value.

Max (Maximum)

Returns Count (X

1

, X

2

, ..., X

n

).

Returns the count of operands.

Count

Returns Sum (X

1

, X

2

, ..., X

n

).

Returns the arithmetic sum of operands.

Sum

Returns Sum (X

1

, X

2

, ..., X

n

) ÷ Count (X

1

, X

2

, ..., X

n

).

Returns the mean value of operands.

Mean

The statistical median is middle number of a group of numbers that ha

ve been arranged in order

by size. If there is an even number of terms, the median is the mean of the two middle numbers.

Median

The standard deviation and variance are measures of how spread out operands values are.

StdDev (Standard
Deviation) and
Variance

Use of Constants

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). Along the same lines, 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.

Results

The output of the math operation selected for the inputs is diplayed in the results area of the Math tool Input tab.

Math Tool and the Remote Command Channel (RCC)

Description

Syntax

Sets the specified tool operand, if it is a constant.

Value should be a floating number.

set mathtool tool_name|tool_number value operand_1|operand_2

Gets the value of the specified tool operand, if it

is a constant.

get mathtool tool_name|tool_number operand_1|operand_2

271

Minneapolis, MN USA

Banner Engineering Corp.

PresencePLUS Software Tools

2/2010

Advertising