Chapter
3
Reference Manual
IVC-2D
46
©
SICK AG • Advanced Industrial Sensors • www.sick.com • All rights reserved
Using IVC Studio
3.9.3
Organizing Error Handling
Without error handling a program stops if an error occur. Hence it is very important to
handle possible errors. Error handling is initiated by the ‘On error goto‘ tool in the Program
category. This step can either be added at the beginning of a small program or, for exam-
ple, at the beginning of each part in a larger program.
3.9.4
Organizing Tables for Readability and Maintenance
Use a table for all parameters that you may want to change during the installation and
use of the application. Divide the table parameters into blocks: User settings, advanced
settings, Debug parameters and so on. It is practical to start filling the table with the
user settings, as these are visible immediately in the programming environment (no
need to scroll the table to find them). Preferably, place a few empty rows in the table
between each parameter block to make adjustments easier.
Give parameters in a table unique names that anyone familiar with IVC Studio and the
application can understand.
3.9.5
Optimizing Performance
Make ROIs as small as possible.
Use image processing filters only when necessary.
Avoid displaying results that are not necessary to see.
Place static ROI definitions outside of the program loops so that they are only executed
once. This is only a concern in very time-critical applications.
3.9.6
Providing Image Processing Robustness
Make sure to provide good lighting conditions.
Avoid dependence on 50 Hz lamps unless shutter times are very long.
Mount a band pass filter on the lens if only one color is of interest.