Real-Time Application Gives Error -63052 Trigger Lines are Not Supported or Enabled

Updated Feb 20, 2020

Issue Details

I have an application where I open an FPGA reference and then reserving a PXI Trigger Line. 
When I execute the VI on my RT controller by clicking run (Interactive control) everything runs with no error.
But, when I build a Real-Time Application and deploy it to my system, the same code gives this error:
Error -63052 occurred at an unidentified location
Possible reason(s):
NI-RIO: (Hex 0xFFFF09B4) Trigger lines are not supported or enabled. For PXI, identify the controller and chassis using MAX.


Add a delay after opening your FPGA reference and before reserving the trigger lines. 
The time needed to wait will vary depending on your hardware, but will be short. 
You can set a large value and then decrease the value to find the optimum value for speed and reliability. 

Additionally, you can use the error output of the invoke node to add some error handling code that waits for a set time then tries to reconnect to the FPGA and reserve trigger lines.

Additional Information

Running in the development environment through interactive control will have some negative performance implications. Therefore, the built Real-Time Application would run faster.
Therefore, where the code previously had enough time to fully open and initialise the FPGA reference, this is not the case when running a Real-Time Application. 
Adding a short wait after opening the FPGA reference gives the application the time it needs to open and initialise the FPGA reference before interacting with the FPGA reference.