LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Bi-directional communication between two VIs in two different computers

Hi, I have a task where I need to use the same program in two computers (both being in the same network) to do a simple task like turning on and off one or more leds, where a computer can interact with the program and it would be reflected in the other and viceversa. I´ve been using data communication options like shared variables and UDP with no success, so I would like to know an alternative or tools (like structures) that could allow this communication to be possible.

 

Thanks.

0 Kudos
Message 1 of 7
(199 Views)

Post your LabVIEW code (even if it doesn't work).  We need to know more precisely what you've tried in order to help you accomplish your goal.

 

Bob Schor

0 Kudos
Message 2 of 7
(179 Views)

Sorry for the late response, but here are the codes I've tried to get to work.

Download All
0 Kudos
Message 3 of 7
(163 Views)

@Max_Power_IT wrote:

Sorry for the late response, but here are the codes I've tried to get to work.


where?

0 Kudos
Message 4 of 7
(156 Views)

I edited the reply, apparently they didn't load at first

0 Kudos
Message 5 of 7
(149 Views)

Hi Max,

 

do you mind to downconvert your VIs and attach again?

You're using the very latest LabVIEW version while many oldtimers stil use older versions.

(Most are happy with "LV2021 or older", I prefer LV2019…)

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 7
(118 Views)

To learn about TCP and UDP communicatiion, go to the examples

Help>>Find Examples>>Networking>>TCP & UDP

(examples\Data Communication\Protocols\UDP\Simple UDP)

There are projects ready to run with explanations why they work the way they do.

 

Here is your UDP VI with error handling, proper ports and ip address:

UDP tx, rxUDP tx, rx

Message 7 of 7
(95 Views)