ADLINK PCI-8158 User Manual

Page 186

Advertising
background image

176

Function Library

@ Syntax

C/C++(Windows 2000/XP)

I16 _8158_int_control(I16 card_id, I16 intFlag);
I16 _8158_set_motion_int_factor(I16 AxisNo, U32

int_factor );

I16 _8158_wait_error_interrupt(I16 AxisNo, I32

TimeOut_ms );

I16 _8158_wait_motion_interrupt(I16 AxisNo, I16

IntFactorBitNo, I32 TimeOut_ms );

Visual Basic (Windows 2000/XP)

B_8158_int_control(ByVal card_id As Integer,

ByVal intFlag As Integer) As Integer

B_8158_wait_error_interrupt(ByVal AxisNo As

Integer, ByVal TimeOut_ms As Long) As
Integer

B_8158_wait_motion_interrupt(ByVal AxisNo As

Integer, ByVal IntFactorBitNo As Integer,
ByVal TimeOut_ms As Long) As Integer

B_8158_set_motion_int_factor(ByVal AxisNo As

Integer, ByVal int_factor As Long) As
Integer

@ Argument

card_id: Specify the index of target PCI-8158 card. The card_id

could be decided by DIP switch (SW1) or depend on slot
sequence. Please refer to _8158_initial().

intFlag: Enable/Disable the Interrupt function

Value Meaning

0

Disable

1

Enable

Advertising