LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Communication between two separate computers

I have two computers both which run a LabView program simultaneously.  I want to be able to send signals back in forth which will pause the program that the other is running temporarily.  For example, when the program on computer A is started, it will complete a few tasks and then send a signal to computer B.  At this point, LabView on computer A will pause and the program on computer B will start performing actions.  When those actions are complete, it will send a signal back to computer A to resume while computer B pauses.  This will go back and forth over and over until enough iterations are complete.  

 

I have looked into the TCP stuff, and think the listeners might be able to help me with this problem, but have not had luck working with them.

 

Thanks for any help.

0 Kudos
Message 1 of 3
(2,324 Views)

Hi Reis,

 

the nice thing is: LabVIEW comes with a huge example library.

 

There are examples explaining how to use UDP and TCP to have two VIs/computers communicate with each other! Have you tried them?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(2,304 Views)

@ReisbS wrote:

I have looked into the TCP stuff, and think the listeners might be able to help me with this problem, but have not had luck working with them.


As already stated, have a good look at the examples.  There is a Simple TCP project in the examples that will get you 95% of the way there.  If you are still having issues, post your code and we will likely get you there.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 3
(2,283 Views)