Solution
A temporary network loss can leave the existing NI-XNET session in an invalid state even after the cDAQ chassis becomes reachable again. In order to recover the chassis programmatically, the cDAQ chassis must be reset. This can be done by using the DAQmx Reset Device.vi, this will allow the PC to recognize the XNET modules again and resume acquisition. To achieve the reset programmatically follow these steps:
- Add the
XNET Clear.vi after the acquisition loop. This allows LabVIEW to create a new NI-XNET session once the chassis detects the interfaces again. - Place the
DAQmx Reset Device.vi inside a while loop to reset the chassis after the network interruption occurs. - Add the
Clear Errors.vi after the reset operation to clear connectivity-related errors and allow the application to continue execution. - Add a
Wait (ms).vi or equivalent delay to give the chassis sufficient time to rediscover the installed modules. - Recreate the NI-XNET session and re-establish communication with the chassis.

This is just a workaround, if the network is known to have intermittent connection loss issues, it is recommended to follow these troubleshooting steps in order to identify the rootcause of the issue: NI-XNET Module Not Detected in MAX