Wait on IRQ (Invoke Method)

Waits for any number of interrupt requests you included in the compiled FPGA VI running on the FPGA target. Always acknowledge interrupts after they occur using the Acknowledge IRQ method. You can use several calls to the Wait on IRQ method to implement waiting on different interrupts from different places in a VI. If you do so, NI recommends that you specify non-overlapping interrupts for different Wait on IRQ method calls.

Note The Wait on IRQ method consumes threads. LabVIEW allocates a number of threads proportional to the number of processors on a machine. If the number of calls to the Wait on IRQ method equals or exceeds the number of available threads, other code in the application might stop executing until an interrupt occurs or the Wait on IRQ method otherwise returns. If you notice that other code in the application stops executing, try reducing the number of calls or put the Wait on IRQ methods in subVIs in different execution systems. Use the Execution Properties page to specify the execution system.

Use the Invoke Method function to implement this method.

Option Description
FPGA VI Reference In FPGA VI Reference In is a reference to an FPGA VI. You must open a reference to the FPGA VI to use this parameter.
error in error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
IRQ Number(s) IRQ Number(s) specifies the logical interrupt or array of logical interrupts for which the function waits. The default is 0. Typical supported values are 0 through 31 unless the target documentation specifies otherwise.
Timeout (ms) Timeout (ms) specifies the time, in milliseconds, that the Invoke Method function waits before timing out. The default is 0 milliseconds. Set this parameter to –1 if you want the Invoke Method function to wait indefinitely for the number of elements.
FPGA VI Reference Out FPGA VI Reference Out returns a reference to an FPGA VI.
error out error out contains error information. This output provides standard error out functionality.
Timed Out Timed Out returns TRUE if this method has timed out.
IRQs Asserted IRQ(s) Asserted returns the asserted interrupts. If you are waiting for a single interrupt, a value of –1 indicates that the interrupt was not received. If you are waiting for multiple interrupts, an empty array indicates that no interrupts were received.