LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Network Streaming RT - PC

Solved!
Go to solution

Hello everyone!

 

I need to ask for your help with network streaming as I'm completely blue in this topic. I'm trying ro receive data from RT_Main.vi on my Host_Main.vi (PC).

 

I tried to tape my computer IP Adress and even sbRIO IP Adress, I tried to change the ending of IP Adress... I entered many combination in reader/writer url input hoping it to work. I'm connected to my sbRIO through Ethernet, static connection.

 

Would you mind explaining me what do I do wrong? I'm getting 314004 error. I read many documents on NI zone, saw some examples, but this time they didn't help me.

 

Thank you for your help

 

 

 

 

0 Kudos
Message 1 of 5
(4,280 Views)

Hi Owca!

 

 You have to specify either a Reader URL or a Writer URL. The one you specify will be the client, trying to connect to the other, which will act as a server and wait for connection. I'd suggest to start by using one fo the examples that we have for network streams:

 

https://decibel.ni.com/content/docs/DOC-21101

https://decibel.ni.com/content/docs/DOC-30579

https://decibel.ni.com/content/docs/DOC-26622

 

You can start modifying these to suit your application. Also, make sure that support for Network Streams is installed on the Real-Time target.

 

Best regards:

 

Andrew Valko

NI Hungary

 

P.S.: There's a good summary of the usage of Network Streams available here.

Andrew Valko
National Instruments Hungary
0 Kudos
Message 2 of 5
(4,247 Views)

Thank you for reply,

 

the thing is that I did what is shown on these examples, but still I can't make connection.

 

I attach new image. I tried with computer IP adress and with sbRIO IP adress. I tried each combination on reader url and on writer url. I've got Network Streams 1.2 installed (checked in MAX).

 

I tried to run RT first and then Host, and vice versa.

 

On the Host error 314350 happens too.

(Error 314350: LabVIEW:  Another application is already streaming data to an endpoint in the context you specified. If you specified a context name in the reader name or writer name terminal of the endpoint, you must specify an unused context name. If you did not specify a context name, you must specify an unused context name by entering an endpoint URL in the reader name or writer name terminal.)

0 Kudos
Message 3 of 5
(4,238 Views)
Solution
Accepted by Riv

Dear Owca,

 

 The error code you got suggests that the endpoint you were tring to connect to got orphaned (that is, it was created but not destroyed yet). Here is the KB describing this issue.

 

For now I have but two suggestions:

 

1. Try increasing the timeout of the connections, since uless ou start both RT and PC in the same second, it will time out.

2. Do not specify the Reade name on the Writer, leave the URL unconnected.

 

If these do not help, I would suggest to see if you can run one of the previously mentioned examples. If not, then it may be a network issue.

 

Hope this helps, please ask away if you get stuck.

 

Regards:

 

Andrew Valko

NIH

Andrew Valko
National Instruments Hungary
Message 4 of 5
(4,198 Views)

Thank you very much! It helped:)

0 Kudos
Message 5 of 5
(4,189 Views)