LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using Shared Variable Over Two Different Networks

I need to create a data sharing system between two computers which on two different network (perhaps need external IP and enabled port to access). Can i use shared variable to do it? I am not sure that whether shared variable can be used over two network. If shared variable cannot do so, what else communication type i can use? Please advice me on this. Thank you 

0 Kudos
Message 1 of 5
(2,755 Views)

Hi,

 

I'm not sure if you can use Shared Variables to communicate between two computers with different networks (you can give a try).

 

Well for start, you can try to use TCP/IP related tools. For a start you can look into this: http://www.ni.com/white-paper/2710/en/ . Just make sure that that port isn't blocked. You can search some examples. Open LabVIEW >> Help >> Find Examples... >> Once NI Example Finder is open, under search, type in the keyword "TCP". This should give you some examples related to that.

 

 

For your additional info (related to Network Shared Variables):

http://www.ni.com/white-paper/12176/en/

http://digital.ni.com/public.nsf/allkb/474BC0745F63B7378625754D0069ECE8

 

Warmest regards, 

Lennard.C

 

Learning new things everyday...
0 Kudos
Message 2 of 5
(2,742 Views)

I tired using the method as shown below but i failed to get data from it. xxx.xxx.xxx.xxx is my external IP and pppp is the enabled port. I not sure whether i do it in the wrong way. Pehaps the shared variable is not supported for external network data transfer. 

shared variable.PNG

 

0 Kudos
Message 3 of 5
(2,717 Views)
Perhaps it is a port forwarding issue? If the device you are trying to communicate with is behind a NAT router/gateway then it will need to be configured (along with any firewalls) to allow communications on the port that you've specified.

LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 4 of 5
(2,707 Views)

This document should direct you to what ports you need to open:

 

What Ports Do I Need to Open on My Firewall for National Instruments Software Products? http://digital.ni.com/public.nsf/allkb/CEF5A3568A5DA71D8625732800520EA1

Craig H. | CLA CTA CLED | Applications Engineer | NI Employee 2012-2023
0 Kudos
Message 5 of 5
(2,686 Views)