How to Reconnect Network Stream After Host Disconnection

Updated Jul 2, 2020

Reported In

Hardware

  • CompactRIO Controller

Software

  • LabVIEW
  • LabVIEW Real-Time Module

Issue Details

When I use network streams to transfer data between host and cRIO, when I close the VI on host and restart it, the error code -314004 will occur which may cause by destorying the connection when host VI closed. How to keep the network streams connection when host destroy it? 

Solution

When the host destroys the network streams connection, the error -314220 will occor on the target. You should destory the original node, clear the error and reopen the network streams node, the following code can be the reference.