15 position compare and latch – ADLINK PCI-8102 User Manual
Page 173

162
Function Library
CntValue, * CntValue: the counter value
T_pos, *T_pos: Target position recorder value,
range: -134217728~134217727
Res_Distance, * Res_Distance: residue distance
6.15 Position Compare and Latch
@ Name
_8102_set_trigger_logic – Set the CMP signal’s
logic
_8102_set_trigger_comparator – Set the trigger
comparator
_8102_set_error_comparator – Set the error
comparator
_8102_set_general_comparator – Set the general
comparator
_8102_set_latch_source – Set the latch timing for
a counter
_8102_set_ltc_logic – Set the logic of LTC signal
_8102_get_latch_data – Get the latch datas from
counter
@ Description
_8102_set_trigger_logic:
This function is used to set the logic of CMP single.
_8102_set_error_comparator:
This function is used to set the comparison method and value for
the error comparator. When the position error counter’s value
reaches the comparing value, the 8102 will generate an interrupt
to the host PC. Also see section 6.14 “Interrupt control”.
_8102_set_general_comparator:
2
Pulser input
3
System clock÷2
Value
Meaning