LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Network streaming - 2 host 1 target communication

Hello,

 

I have a problem establishing connection between two host (PCs) and 1 target (cRIO) via network streaming communication.

Of course in the "target" I set two endpoints and I communicate with them using different reader/writer name (target IP address is same for both). I set up connections according to the NI example. 

When one host is running there is no problem, after turning the second one the time loop is doubled (e.g the target sending loop value is set for 500 ms. same in both hosts receiving loops. When both are at run position the time loop value in host is unstable, hesitates between 500 and 1000)

My question is if I'm using the correct tools for this type communication or there is a drifferent, better one that i shall use. 

My goal is to communicate cRIO with two machines that work completely independently.

 

Thank you for your help

0 Kudos
Message 1 of 2
(2,042 Views)

Hi Seta,

 

I would suggest that you have a look at this white paper - it really goes through all the different options that you have for network communication.

 

The increase in time sounds like to me due to added overhead of handling the 1:1 communication in an individual loop on your target. By breaking these out intro separate loops you have a separate process and scheduled task assigned to each.

 

However, dependent on what your application is trying to do it sounds to me like you may benefit from using UDP communication  protocol which does not rely on having two end points - think of it more like sending a letter in the post.

 

There are examples in LabVIEW to get you started.

 

Thanks,

 

Matt

0 Kudos
Message 2 of 2
(2,018 Views)