LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

FPGA Interface C API asyncronous abort before timeout

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,

0 Kudos
Message 1 of 2
(2,238 Views)

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

0 Kudos
Message 2 of 2
(2,168 Views)