05-22-2013 09:09 AM
Hello,
for programming my Visual c++ application i'm using NiFpga_WriteFifo and NiFpga_WaitOnIrqs functions generated by NI FPGA Interface C API Generator from my LV FPGA project.
Both those functions have a parameter to specify a timeout and, when this parameter is not zero (or NiFpga_InfiniteTimeout), the thread executing the function has to wait until timeout is reached.
Is it feasible to abort those functions asynchronously, for example using a second thread, in order to wake up the the thread that is waiting for the function completion before the timeout has been reached?
thank you,
06-06-2013 05:01 AM
Hello,
if I understand your request, you want to set, for example, a timeout of 20 ms and when 19 ms comes you not want to perform the functions of FIFO but alternatively, continue with another piece of code. If that's what you mean, i'm sorry but it is not possible because you can not access on that programmatic "counter" of timeout.
Bye
Mario