Reference Manual
Chapter
2
IVC-2D
©
SICK AG • Advanced Industrial Sensors • www.sick.com • All rights reserved
11
Creating a product
2
Getting Started
In this chapter we will introduce the basics in IVC Studio, and learn how to:
Set up IVC Studio to write a program
How to write the program - that is adding program steps and setting parameters
How to test and debug the program
As an example we will build a simple program that checks whether or not a label has been
placed correctly on a bottle, that is if it is tilted or not.
OK
Fail
A simple way of checking this is to:
Capture an image of the bottle
Search the image along two lines to find the edge of the label in two locations
Calculate the angle between the two locations
If this angle is too large then the label is tilted, and the program changes the state of an
output. In a real application this output could for example control a lever that pushes the
faulty bottle to the side.
When writing a program in IVC Studio you can use either a hardware camera or, if no such
is available, the Emulator.
In the following sections it is assumed that a hardware camera is used, and that both the
camera and IVC Studio are installed and are working properly. How to install the camera
and IVC Studio is described in the installation instruction.
How to use the Emulator is described in section Using IVC Studio in the IVC-2D Reference
Manual.
2.1
Creating a product
Before starting to write the program that performs the inspection, you need the following:
A
product
to work in
A
device
to use in the product (in this case a camera)
A
program
written for the device