Solution
One option to avoid this issue is using the
System Configuration Library to wait for the XNET hardware to become available before creating an XNET session. Download this figure then drag it into VI diagram for an example:
For cRIO systems, ensure that you have performed a necessary action to cause NI-XNET to load before searching for the hardware. See
Getting Started with NI-XNET Installing and Configuring It for NI VeriStand and NI LabVIEW for more information on loading NI-XNET.