Professional Documents
Culture Documents
Session 6
Objectives
The student will correctly list:
Purpose of a calibration
Uses of cell state
Uses of error handling
Cell State
Using Cell State is a way to disable execution of one or more
cells in the spreadsheet
While disabled:
Cell is not executed
Cells contents remain as they were before disabling
6-3
Cell State
First, highlight cell(s) which are to be disabled. Then choose Cell
State in Edit Menu
Example: Histogram Average
6-4
Cell State
You can disable
unconditionally or
conditionally
To disable unconditionally,
check Disabled
6-5
Cell State
To disable conditionally, make
a reference to another cell
If referenced cell is 0, original
cell(s) are disabled
If referenced cell is non-zero,
original cell(s) are enabled
6-6
Cell State
6-7
3) Choose Conditionally
Enabled and click the
Select Cell button
6-8
6-9
6-11
FindPatterns
ExtractHistogram
Structure
6-12
6-13
CountError(B7) returns ?
CountError(C7) returns ?
CountError(B7, C7, D7) returns ?
6-14
Disabled ExtractHistogram
Enabled ExtractHistogram
6-15
ErrFree
ErrFree replaces #ERR with a zero
Helps to avoid propagating errors in logic statements
ErrFree
keeps proper
logical
values
6-16
ErrFree
IF statement checking
contrast turns to #ERR; it
cannot be use to make a
decision
Using ErrFree you can turn
#ERR into a zero which can still
be used to make logical
decisions
6-17
Distorted
Undistorted
6-18
6-19
Application Example:
Use Non-linear calibration so
bottles in the red region will be
located as accurately as the
bottle in the green region
6-20
10
Calibration Wizard
6-21
OR
6-22
11
Grid of Dots
Checkerboard w/ fiducial
Checkerboard
6-23
Grid of Dots
Checkerboard w/ fiducial
Checkerboard
6-24
12
6-26
13
6-27
6-28
14
6-29
Calibration Results
Average & Maximum
Pixel Error Displayed
Calibration Result Scale
6-30
15
6-31
Calibrate Image
A method to Convert Pixel Data to Real World (mm)
16
Calibrate Image
Step 1 Reference image to be used (default is A0) for
Image
Step 2 For Calib, reference calibration structure created
such as the previous CalibrateGrid function
6-33
Calibrate Image
Step 3 Open FindSegment tool and reference the
CalibrateImage cell for Image
Now the vision tool (FindSegment) will out the distance in real
world values as defined by the calibration
6-34
17
Smooth edges are optimal; burrs/ rough edges will reduce accuracy
A grid printed on a standard ink jet or laser jet printer will limit accuracy
High quality lenses with telecentric properties will provide best results
Edge tools are accurate to .25 (1/4) pixel, PatFind to .1 (1/10) pixel, PatMax to .025 (1/40) pixel
1/10th pixel accuracy is attainable if the parts are flat and have well defined edges
Calibration Guidelines
Keep calibration setup identical to production setup
Keep calibration object & part in same plane
Limit calibration to region of image containing features of interest
6-36
18
Summary
Cell State allows users to enable/disable cells on the fly
Error handling functions allows an application to detect error and do something
smart about them
The In-Sight system works in the pixel world. To get meaningful, real-world
units reported, you must use calibration
Calibration can account for barrel, radial, and perspective distortion
CalibrateGrid can also account for non-orthogonal mounting and uses special
calibration plates
Calibration should be done at least when there is any physical change in the
environment
6-37
19