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
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.
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.
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.
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?
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