Instruction manual
AMPDIO DRIVERS
Page 201
phUIOut pointer to short: pointer to short integer
variable which will be set to –1 on timeout, or
to the user interrupt handle of the first user
interrupt which is ready for data transfer.
TOutMs unsigned long: maximum amount of time in
milliseconds to wait for an interrupt data buffer
to become available for transfer on any of the
user interrupts being checked. Can be set to 0
for a poll or to INFINITE (FFFFFFFF
16
) to wait
indefinitely.
Returns short: 0 if timed out; 1 if ready for data transfer (variables pointed to by
phBOut and phUIOut set to board handle and user interrupt
handle, respectively).
or ERRHANDLE
ERRCHAN
ERRDATA
ERRMEMORY
Prior Calls registerBoardEx
TCsetNCBufferUserInterrupt
TCsetNCBufferUserInterruptAIO
TCsetNCBufferUserInterrupt2
enableInterrupts
See Also TCdriveNCBufferUserInterrupt
TCwaitNCBufferReady
6.4.16 Miscellaneous Interrupt Handling Functions
6.4.16.1 Check User Interrupt for Occurrence of Error — TCcheckUserInterruptError
Checks a previously set-up and enabled user interrupt to see if an overflow or under-run has
occurred and clears the condition afterwards.
An overflow condition occurs when a user interrupt is reading data from a port or an ADC
channel and a data sample fetched on a trigger could not be handled due to a FIFO full
condition or lack of room in a user interrupt data buffer.
An under-run condition occurs when a user interrupt is writing data to a port or a DAC channel
and no data is available when a trigger occurs, due to an empty FIFO condition or no data
available in a user interrupt data buffer.
Enabling a user interrupt or checking the overflow or underflow condition with this function
causes any such condition to be cleared (but not before checking the condition).
SUPPORTED IN VERSION 4.23 ONWARDS.
i = TCcheckUserInterruptError (h, hUsrInt)
where h short: board handle as issued by the
registerBoardEx function.
hUsrInt short: user interrupt handle as issued by user
interrupt set-up function.