Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

INSTRUMENT ETHERNET CONNECTION

Hi everyone,

 

I have some issues with my instrument ethernet connection.

First test I made it was build my own network (just my laptop and the instrument) and start an ethernet communication between the two devices. Everything worked fine and I was able to use Measurement & Automation Explorer (MAX) to find my instrument in the small network. I used different Labview version (2010, 8.5, 8.6) all them worked.

Now I have moved the instrument in a bigger network where also my pc is a part of that. The istrument as a network name and a static IP assigned. 

Right now I'm having some troubles try to connect my laptop to the instrument (To make it clear they are in the same network but physically in two different place). How should I set my Labview VI TCP/IP (My VI as a VISA Open block to start the communication with the instrument ), so basically what are the Lbview requirement for the network?Under what conditionns I can stil use MAX tool to search the device inside the network?  

0 Kudos
Message 1 of 3
(3,133 Views)

You have to make sure the computer controller and the instrument under control are on the same domain. If the computer has DHCP active (as it is for most organisation computers on the network) then no telling what address it picked up. See that the computer is set to fixed IP address and turn DHCP off. Then make sure the Instrument IP address has the same domain numbers. So the computer for instance would be 192.168.2,1 and the instrument would be 192.168.2.255. I made them 1 and 254 to demonstrate that the IP address for the last value can range betweek 1 and 255. Then reboot both the computer and the instrument to make the IP address changes effective and you should have your connection again.

0 Kudos
Message 2 of 3
(3,129 Views)

If you are on a corporate network, your PC probably gets an IP address from a DHCP server, so there is nothing you can do about that.

 

In XP, what you need to do is go into Control Panel -> Network Connections -> Local Area Connection and right-click on it. Select Properties. Scroll down to Internet Protocol TCP/IP. Select it so that it is highlighted in blue, and then click the Properties button. Click on the Alternate Configuration tab. Input the IP address that is suggested above such as 192.168.1.1 and use Gateway of 255.255.255.0  On your instrument, set it to IP address such as 192.168.1.2

 

You may need to reboot your PC.

 

 

0 Kudos
Message 3 of 3
(3,123 Views)