8144_wait_single_motion_interrupt – ADLINK PCI-8144 User Manual
Page 141
Function Library
131
_8144_wait_single_motion_interrupt
Wait a single motion related interrupt
Description:
When user enabled the Interrupt function by
_8144_set_motion_int_factor()
. User could use this
function to wait the specific interrupt. When this function was
running, the process would never stop until evens were trig-
gered or the function was time out. This function returns when
one of the following occurs:
1. The specified MotionIntFactorInBit is in the signaled
state.
2. The TimeOutMs interval elapses.
This function checks the current state of the Motion interrupt. If
the state is nonsignaled, the calling thread enters the wait
state. It uses no processor time while waiting for the INT state
to become signaled or the time-out interval to elapse.
Syntax:
I16 _8144_wait_single_motion_interrupt( I16
AxisNo, I16 MotionIntFactorBitNum, I32
TimeOutMs )
B_8144_wait_single_motion_interrupt( ByVal AxisNo
As Integer, ByVal MotionIntFactorBitNum As
Integer, ByVal TimeOutMs As Long )As Integer
Parameters:
I16 AxisNo
: The axis number is designated to receive the
command.
Card ID Physical axis AxisNo
0
0
0
1
1
2
2
3
3