I have a complex application that involves LabVIEW under Linux, and accessing FPGA fabric via Python nodes. In the compiled LabVIEW application I get a warning that doesn't show up in the development environment. Since it is a benign warning and can be safely ignored (I expect the timeout), I don't want the message to show up in the terminal. I suspect I need to trap the warning in python, but I'm not sure why the warning should show up at all. How do I make the message go away?
The message:
/usr/local/lib/python3.6/site-packages/nifpga/status.py:69: IrqTimeoutWarning: Warning: IrqTimeout (61060) when calling 'NiFpgaDll_WaitonIrqs' with arguments:
session: 0x1
context: 0x1
irqs: 0x400
timeout ms: 0x32
irqs asserted: 0x0
timed out: 0x1
warnings.warn(warning)
Python code that I'm pretty sure caused the warning:
def WaitOnIRQ():
global session
timeout_ms = 50
irq_num = [10]
irq_status = session.wait_on_irqs(irq_num, timeout_ms)
if irq_num in irq_status.irqs_asserted:
session.acknowledge_irqs(irq_status.irqs_asserted)
return(irq_status.timed_out);