ADLINK PCI-8102 User Manual
Page 174

Function Library
163
PCI-8102
This function is used to set the comparing source counter, compar-
ison method and value for the general comparator. When the com-
parison conditions are met, there is one of the 4 reactions will be
done. The detail setting, see the argument discribtion.
_8102_set_trigger_comparator:
This function is used to set the comparing source counter, compar-
ison method and value for the trigger comparator. When the com-
parison source counter’s value reaches the comparing value, the
8102 will generate a pulse output via CMP and an interrupt
(event_int_status, bit 12) will also be sent to host PC.
_8102_set_latch_source:
There are 4 latch triggering source. By using this function, user
can choose the event source to latch counters’ data.
_8102_set_ltc_logic:
This function is used to set the logic of the latch input.
_8102_get_latch_data:
After the latch signal arrived, the function is used to read the
latched value of counters.
@ Syntax
C/C++(Windows 2000/XP/7)
I16 _8102_set_trigger_logic(I16 AxisNo, I16
Logic);
I16 _8102_set_error_comparator(I16 AxisNo, I16
CmpSrc, I16 CmpMethod,
I32 Data);
I16 _8102_set_general_comparator(I16 AxisNo, I16
CmpSrc, I16 CmpMethod,
I16 CmpAction, I32 Data);
I16 _8102_set_trigger_comparator(I16 AxisNo, I16
CmpSrc, I16 CmpMethod,
I32 Data);
I16 _8102_set_latch_source(I16 AxisNo, I16
ltc_src);
16 _8102_set_ltc_logic(I16 AxisNo, I16
ltc_logic);