ADLINK PCI-8164 User Manual

Page 147

Advertising
background image

Operation Theory

135

Example: Using the continuous position comparison function.

In this application, the table is controlled by the motion command,
and the CCD camera is controlled by the position comparison out-
put of the 8164. An image of the moving object is easily obtained.

Working Spec: 34000 triggering points per stroke, trigger speed is
6000 pts/sec )

Program settings:

X

Table starts moving from 0 to 36000

X

Compare points are on 1001 35000, total 34000 pts, points
to points interval = 1 pulse

X

Moving Speed is 6000 pps

X

Compare condition is “=“

Program code:

_8164_set_trigger_comparator(0, 1, 1, 1001);
_8164_build_compare_function(0, 1001, 35000, 1,

1);

_8164_set_auto_compare(0, 1);
_8164_start_tr_move(0, 36000, 0, 6000, 0.01,

0.01);

Monitoring or Check the current compare data:

_8164_check_compare_data(0, 5, *CurrentData);

Advertising