Network Streams Between PC and CompactRIO Are Not Working

Updated Jun 15, 2020

Reported In

Hardware

  • CompactRIO Controller

Software

  • LabVIEW
  • LabVIEW Real-Time Module

Issue Details

I am trying to stream data using Network Streams between my PC and my CompactRIO but the connection is not working. How can I troubleshoot this issue?

 

Solution

Network Stream communication can be inhibited for many reasons. Check the list below to address common reasons for Streams between PC and CompactRIO not working.
  • Make sure you have Labview Real-Time Module installed in your host Computer , otherwise you will not be able to install Network streams on your cRIO
  • Check that the Network Stream support is installed in the cRIO in NI Measurement and Automation Explorer (MAX) by looking in the software list under Remote Systems >> <cRIO hardware> >> Software.
 
 
 
  • When running LabVIEW, choose to "Run as Administrator"
  • Check firewall settings to ensure necessary ports are open and services are added as exceptions.
  • Check the timeout in the VIs that create the endpoints (Create Network Stream Writer Endpoint.vi for example). This timeout waits for the communication to be established during a configured amount of miliseconds. If the communicaiton is not established within the specified timeout time in miliseconds, an error is thrown.
  • To check whether the issue lies within your code architecture, test the connection with example code Try the Network Stream example shipped with LabVIEW -- Simple Network Streams.lvproj.
  • If you are seeing this issue within an exe, check the URL nomenclature.

Additional Information

You may see failure to connect when swapping the host and target endpoints. This is likely a firewall issue, which will prevent outside connections being made to the Windows PC, but will allow outbound connections to the RIO.