LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Network Streams keep showing ERROR: -314004

I was trying to use network streams to transfer my data from RT vi to host vi. That data comes from the DMA fifo with 10k sampling rate. But when I run both of RT vi and host vi. It keeps give an error '-314004'. Error -314004 is the "Failed to Connect" error. How can I avoid this error.

 

My RT target is CRIO 9022.

Network Streams.JPG

 

Network Streams Reader.JPG

0 Kudos
Message 1 of 3
(5,217 Views)

Hi sdualienware,

 

Here is an example of network streams which you can reference when setting up your reader/writer streams on RT targets (https://decibel.ni.com/content/docs/DOC-21101). In addition, here is an excellent tutorial on how to use network streams in general (http://zone.ni.com/devzone/cda/tut/p/id/12267). In specific, look at the section "Creating Endpoints and Establishing a Stream". I believe that the slash in "/writer" might be causing the connection failure. Hope this helps!

 

 

Aldo A
Applications Engineer
National Instruments
Message 2 of 3
(5,205 Views)

Error −314004:

"LabVIEW could not create the endpoint within the timeout period. Ensure that you specify the URL of a remote endpoint with the reader url terminal of the Create Network Stream Writer Endpoint function or the writer url terminal of the Create Network Stream Reader Endpoint function."

 

I can see that your 'creat network stream endpoint' is set to time out after 1000 milliseconds.  That seems like alot, but it might not be enough, if you have a slow network or something.

 

Error code look up table:

http://zone.ni.com/reference/en-XX/help/371361H-01/lverror/streams_error_codes/

0 Kudos
Message 3 of 3
(4,581 Views)