Instruction manual

AMPDIO DRIVERS
Page 202
Returns short: 0 = overflow or under-run NOT detected; 1 = overflow or under-run
detected and cleared.
or ERRHANDLE
ERRCHAN
Prior Calls registerBoardEx
TCsetUserInterrupt
TCsetUserInterruptAIO
TCsetUserInterrupt2
TCsetBufferUserInterrupt
TCsetBufferUserInterruptAIO
TCsetBufferUserInterrupt2
TCsetNCBufferUserInterrupt
TCsetNCBufferUserInterruptAIO
TCsetNCBufferUserInterrupt2
enableInterrupts
See Also
6.4.16.2 Flush (Discard) User Interrupt Data TCflushUserInterrupt
Flushes (discards) any user interrupt data that is stored in the driver including any data in
FIFOs.
If the interrupt reads data into the user buffer from a device, the driver will reset to the start of
the current buffer and reset the FIFO (if used).
If the interrupt writes data from the user buffer to a device, the driver will discard any
remaining data in all queued buffers and reset the FIFO (if used).
When reading multiple ADC channels or writing multiple DAC channels, the correspondence
between buffer positions and channels will be preserved subject to the following warnings.
WARNING FOR PCI230 AND PCI260: When using the ADC FIFO, it is possible for a sample
to enter the FIFO just after it has been reset by this call. This would cause the
correspondence between buffer positions and channels to be lost (they are shifted by one
position). It is impossible for the driver to detect or prevent this condition. Therefore, if reading
multiple channels from the ADC FIFO, use of this function must be avoided if there is any
possibility that a conversion trigger could occur during the operation.
SUPPORTED IN VERSION 4.35 ONWARDS.
i = TCflushUserInterrupt (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.
Returns short: OK
or ERRHANDLE
ERRCHAN
Prior Calls registerBoardEx