Error -314350 When Using Network Stream Between Applications on Same Computer

Updated Jul 25, 2023

Reported In

Software

  • LabVIEW

Issue Details

I'm seeing Error -314350 occurred at Create Network Stream Writer Endpoint in Host.vi.This happens when running two applications which use a network stream to communicate with one another on the same computer.  I do not see an error and everything works as expected when the applications are run as VI's in LabVIEW.

Solution

To connect two applications using network streams functions, you must use a URL with the following syntax to prompt a connection between the endpoints:

//localhost:context_name/endpoint_name

context_name is the name of the application in this case.  You will see the error if the writer and reader do not have different context names.

See example below showing the communication between a host and target VI.