LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Ethernet I/O between two computers

Solved!
Go to solution

I have two computers running labview. I am attempting to generate a signal on one, and read it on the other. Connection between the two computers is ethernet. The problem is that NI MAX cannot detect a network device. I have successfully pinged the signal sending computer through command prompt. Any ideas on why MAX cannot detect the signaling computer?

0 Kudos
Message 1 of 10
(3,518 Views)

Have you tried running the TCP client and server examples that ship with LabVIEW?  You could run the client VI on one machine and the server VI on the other.

Message 2 of 10
(3,507 Views)

Good point. I tried running the Data Server VI on the generation machine, and the Data Client on the other. The error recieved was "Network connection refused by Server." I used the default port input in the VI's, how would I know the port number?

0 Kudos
Message 3 of 10
(3,502 Views)

You just need to make sure the port number matches between the two VIs.  If you kept them as the default values, then next I would check my firewall settings, or even temporarily turn off the firewall to see if that allows the connection to be made between the two VIs.

0 Kudos
Message 4 of 10
(3,490 Views)

The first issue I discovered is that I was using a standard ethernet cable, not a crossover cable. After switching to the correct cable, I was able to see the files on the other machine. I then disabled all firewalls, and tried running the Client/Server VI's pair on each machine. The error was still the same. NI MAX was unable to set up an ethernet connection as well. Not sure what to try next.

0 Kudos
Message 5 of 10
(3,469 Views)
Solution
Accepted by fliphkd778

Try running the examples on the same machine first. If you can't get the example to work between two different application instances on the same machine, then you are definitely not going to get it working on two different machines. Once that is working, try using the IP address instead of the hostname of the computer. If still no luck, try disconnecting all other networks on both machines.

Charles Chickering
Architecture is art with rules.

...and the rules are more like guidelines
Message 6 of 10
(3,462 Views)

It worked! Even with the firewall enabled on both machines. Thanks for all the help!

0 Kudos
Message 7 of 10
(3,450 Views)

Just an update, I was successful using a standard ethernet cable as well as a cross-over. 

0 Kudos
Message 8 of 10
(3,432 Views)

Could you be more specific as to what appeared to fix your problem? Also, regarding the crossover vs non-crossover cable, at some point in time the ethernet chip makers got creative and started making auto-sensing ethernet cards that could sense if you were using a crossover cable or not and would automatically swap the tx and rx lines to compensate. If you get two really old computers, you will probably have to use the crossover cable.

Charles Chickering
Architecture is art with rules.

...and the rules are more like guidelines
0 Kudos
Message 9 of 10
(3,422 Views)

Sorry for the ambuiguity. 

 

  • I first connected the conputers with an ethernet cable. 
  • From there, I ran the command "ipconfig" in the windows command prompt to acquire the ip address for the server machine. 
  • I then changed the ethernet connection properties in Window's Network and Sharing Center to use the address from the step above. 
  • Next, I launchd LabVIEW on both machines. On the server machine, I ran the NI example VI "Data Server.vi." This VI may be found by searching "TCP" in the examples search. Run the server vi before the client vi. 
  • I ran the example "Data Client.vi" on the client machine, using the ip address from step 2 in the "address" input on the front panel. 

From there, data from the server began to be displayed on the client vi. 

Message 10 of 10
(3,414 Views)