Error -314004 When Using Network Streams

Updated Sep 5, 2018

Reported In

Hardware

  • CompactRIO Controller

Software

  • LabVIEW
  • LabVIEW Application Builder Module

Other

  • Network Streams

Issue Details

I am trying to set up network streams and encounter Error -314004: Failed to Connect.  How do I resolve this error?

Solution

This error occurs when the connection between the network endpoints cannot be established. Try the following:
  • Make sure you have an established connection between the two machines that are trying to communicate. Test this by pinging one machine from the other.
  • Make sure your LabVIEW code is set up as shown on this page.
  • Disable firewall and antivirus to accommodate LabVIEW networking.
  • In the case that you one of the endpoints on a CompactRIO (cRIO). Make sure the cRIO's code is running and continuously checking for connection if it is not successful. You can use the cRIO's User LED (if available) as indicator.  You can also reference the LabVIEW FPGA Control on CompactRIO project template to see how the Real-Time code is implemented on the cRIO. 
 
If this error comes up when you are running an application (executable) but it runs fine when you run it from the development environment there are other considerations to take into account.
  • When you are running an application, the security settings for this new executable could be different. If LabVIEW has certain security settings, the executable created by LabVIEW might not have the same. As it's possible you can't disable the firewall as stated in the last step of the solution and you have LabVIEW as an exception on the firewall or antivirus, make sure you also add the application built by LabVIEW on these exceptions.
  • Try increasing the endpoints creator's timeout as the timing might change from the development environment to the application.

WAS THIS ARTICLE HELPFUL?

Not Helpful