ADLINK PCI-8158 User Manual

Page 195

Advertising
background image

Function Library

185

_8158_set_latch_source:

There are 4 latch triggering source. By using this function, user
can choose the event source to latch counters’ data.

_8158_set_ltc_logic:

This function is used to set the logic of the latch input.

_8158_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)

I16 _8158_set_trigger_logic(I16 AxisNo, I16

Logic);

I16 _8158_set_error_comparator(I16 AxisNo, I16

CmpMethod, I16 CmpAction, I32 Data);

I16 _8158_set_general_comparator(I16 AxisNo, I16

CmpSrc, I16 CmpMethod, I16 CmpAction, I32
Data);

I16 _8158_set_trigger_comparator(I16 AxisNo, I16

CmpSrc, I16 CmpMethod, I32 Data);

I16 _8158_set_latch_source(I16 AxisNo, I16

LtcSrc);

I16 _8158_set_ltc_logic(I16 AxisNo, I16

LtcLogic);

I16 _8158_get_latch_data(I16 AxisNo, I16

CounterNo, F64 *Pos);

Visual Basic (Windows 2000/XP)

B_8158_set_trigger_logic(ByVal AxisNo As Integer,

ByVal Logic As Integer) As Integer

B_8158_set_error_comparator(ByVal AxisNo As

Integer, ByVal CmpMethod As Integer, ByVal
CmpAction As Integer, ByVal Data As Long) As
Integer

B_8158_set_general_comparator(ByVal AxisNo As

Integer, ByVal CmpSrc As Integer, ByVal
CmpMethod As Integer, ByVal CmpAction As
Integer, ByVal Data As Long) As Integer

Advertising