Reference Manual
Chapter
2
IVC-2D
©
SICK AG • Advanced Industrial Sensors • www.sick.com • All rights reserved
13
Creating a product
There is also a fourth type that we haven’t mentioned yet -
macros
. Macros are basically
small programs that you can call from within regular programs. They can be useful for
reusing blocks of program steps when writing advanced programs.
2.1.2
Select a Device
The next step is to select the device used for the inspection:
3.
Click
Devices
in the left pane of the main window.
The camera is displayed in the right pane. If there are more devices that can be used
by IVC Studio in your network, those will also be displayed in the right pane.
4.
Select a device by clicking in the checkbox in front of it in the right pane.
You should always select the devices that you intend to use in your product. IVC Studio
periodically updates the information in the device list by polling the devices that are selec-
ted in the list.
If no device is selected in the list, IVC Studio will poll every device it can find for information.
This slows down IVC Studio may affect the performance of devices used by other users.
2.1.3
Create a Program
Now we are ready to create the program that we intend to build and associate it with a
device.
The reason for associating the program with a device before building it is that the program
is always run in a device and not on the computer. What you see in IVC Studio when
running a program are just the results, which are sent from the device. If you didn’t associ-
ate the program with a device, you would not be able to see any result of the program or
even test the program.
5.
Right-click
Programs
in the left pane in the main window, and choose
New Program
from the pop-up menu.
6.
Fill in a name for the program in the dialog box, and click
OK
.
7.
Click
Devices
in the left pane of the main window.
8.
Right-click the device in the right pane that is selected for the product, and choose
Select Program
from the pop-up menu.
9.
Select the program in the list in the dialog box, and click
OK
.
2.1.4
Create a Table
There must also be a table associated with the device, so before starting to build the
program we must create a table and associate it with the device:
10.
Right-click
Tables
in the left pane in the main window, and choose
New Table
from the
pop-up menu
11.
Fill in a name for the table in the dialog box, and click
OK
.
12.
Click
Devices
in the left pane of the main window.
13.
Right-click the device in the right pane that is selected for the product and chose
Select Table
from the pop-up menu.
14.
Select the table in the list in the dialog box, and click
OK
.
15.
Finally, save your changes to the product on the PC by choosing
File
Æ
Save Product
.