LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

connect two pc's over a lan using labview

Hi,
I am trying to connect two pc's over a LAN using ethernet. Both pc's are connected to the LAN and I can ping each one from the other but I cannot get commseither using the visa vi's in labview or  through MAX. In MAX I right clIck 'devices and interfaces' and select create new ->VISA TCP/IP Resource. A dialogue box appears and I select raw socket then click next. I put in the ip address. It looks for a port which I don't know I have tried a few numbers. What am I doing wrong?
Thanks,
Steven
0 Kudos
Message 1 of 6
(3,643 Views)
Why don't you just use the TCP functions? There's several shipping examples. I suppose you could write client/server programs with VISA functions but I don't know of any examples of these. You might as well start with something that already exists and modify it for your needs.

I'm not sure MAX will detect just a pc resource unless you start VISA Server on the remote pc.
Message 2 of 6
(3,620 Views)
I would recommend following the advice Dennis has given. What is your end goal for the comms? Are you passing a lot of data often? I would consider TCP as a starting point and the examples are really easy to understand and use.

Go to Help>>Find Examples and search for TCP.
0 Kudos
Message 3 of 6
(3,575 Views)
Thank you both for your help. The application is a hi speed test handler which has an industrial pc attached. This pc will be connected to a second pc which is in turn connected to some test instruments via gpib. The two pc's need to synchronise their actions.
0 Kudos
Message 4 of 6
(3,534 Views)
Using TCP would get you results, but depends how accurate you need to synchronise the operations. If this needs to be fairly tight then I wouldn't rely on non-deterministic network methods. Is it possible to implement some sort of triggering between devices?
0 Kudos
Message 5 of 6
(3,482 Views)
Hi SR,

I have decided to change to a serial link between the 2 pc's which makes it more deterministic and it works out to be quick enough. I am using the visa drivers as Dennis has

suggested in labview which makes this very straight forward

Thanks,

Steven
0 Kudos
Message 6 of 6
(3,475 Views)