LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to setup networking in labview for 2 different computers

Hello I was wondering how do you setup a network connection between two computers in labview. I have looked at the networking examples in the find examples section of the Labview 8 help, and the examples work fine when I just use the same computer as both server and client. However, when I try running the examples between the two computers, PC 1 is server. PC 2 is client, I get the time out error. So I guess I would like to know exactly what steps I need to take to get networking between two computers. I have a couple of devices attached to each computers com ports and I would like one vi on pc 1 to control all the devices. I figured I can write a vi on pc 2 that can control pc 2's devices, and then do a subvi call or something like that to pc 2 from pc 1 to have remote access to the other devices. I'm new to labview and am no networking genius so I need like pretty detailed and straightforward help. Thanks.
 
 
David Charlot
0 Kudos
Message 1 of 10
(4,251 Views)
Simple things first:
If these are windows XP computers, make sure to either disable the windows firewall (not recommended) or create a firewall exception for the server ports used (recommeded).
 
See if you now can get the examples working between two computers. Let me know if you need more detailed help. 🙂
0 Kudos
Message 2 of 10
(4,241 Views)
yeah I disabled completely the windows firewall so it's not that. I really just have no idea what machine name/ip address i am supposed to put in. when i put an asterik for any it just goes to localhost so that doesn't help me. I know both the computer names and ip's for eah comp. They are both connected to the internet and I can surf the web on each. So i don't know what i am doing wrong but i get the timeout error because it doesn't find it everytime i run any example.
0 Kudos
Message 3 of 10
(4,237 Views)


@dcharlot wrote:
I really just have no idea what machine name/ip address i am supposed to put in. when i put an asterik for any it just goes to localhost so that doesn't help me.

Sorry, you lost me right there. Where exactly did you try to put an asterix???? 😮

Which example program are you trying to use?

Typically, you would enter the IP address of the server in the client program.

0 Kudos
Message 4 of 10
(4,221 Views)
Yeah my problem was all network related. I couldn't ping the other computer. Both computers have web access but they cannot ping one another. I tried the example problems at home and they worked fine. Thanks for your help.


David Charlot
0 Kudos
Message 5 of 10
(4,217 Views)

actually im facing the same problem, i cant run a server and client VIs using shared variable on different computers.

so can u tell me plz what to do and what is the steps to handle it?

Mahmoud Alshair
Intelligent Systems Integrator ( ISI )
System Developer
0 Kudos
Message 6 of 10
(3,934 Views)
Hi Shair,

Try disabling the firewall and then run the example programs under the networking folder in Find Examples in LabVIEW. Do you get this problem only when trying to communicate between different computers? Do you get an error message? Are you able to communicate within the same computer using shared variables? I need a lot more information to help you.


Warm regards,
Karunya R
National Instruments
Applications Engineer
0 Kudos
Message 7 of 10
(3,917 Views)
Hi Karunya R,
 
yes, the server and the client VIs are working well on the same computer and the shared variable too
but when when i use another computer it's not working.
 
so can u tell me please what the are steps that i should do or any document or example can help me?
 
thanx for your cooperation
 
 
 
Mahmoud Alshair
Intelligent Systems Integrator ( ISI )
System Developer
0 Kudos
Message 8 of 10
(3,900 Views)
Hi Mahmoud,
 
Using the LabVIEW Shared Variable contains some excellent information to use shared variables across remote computers.  As Karunya had mentioned, please disable your firewall as well as your antivirus as a temporary measure to see if these are blocking the shared variable.  If they are, then restore the security settings, but only allow specific ports to have access. 
 
Are you using NI DSC module as a means of using LabVIEW as a client for your shared variables?  You should know that your remote computer will need to have NI DSC run-time engine installed to have this work.
0 Kudos
Message 9 of 10
(3,883 Views)

Dear Dogla,

I will Install The DSC Module on the client And I'll check it up.

about the firewall and any other protection program, they all turned off

I'm so thankfull

 

Mahmoud Alshair
Intelligent Systems Integrator ( ISI )
System Developer
0 Kudos
Message 10 of 10
(3,868 Views)