From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Remote LAN equipment control

Hi,

 

I have PC1 (client), PC2 (Host). Host PC has 2 LAN cards.

 

One is connected to LAB network where PC1 and PC2 can RDP to each other.

 

The second LAN card is only local to Host and nearby equipments (something like 192.168.xx.xx). 

 

On the host PC, i can add these (192.168.xx.xx) equipments to NI MAX and can talk to them. 

 

How can i access these equipments from client PC using labview?

 

I enabled VISA server access on the host PC.

 

I was using "VISA://hostIP/COMx" method for accessing the COM based equipment of the host PC. But in this case, no clue.

 

Appreciate and thank you for your suggestions.

 

0 Kudos
Message 1 of 6
(769 Views)

While VISA supports TCP communication it is not a network gateway router. 

 

It may still kind of work by using something like: VISA://hostIP/TCPIP0::deviceIP::SOCKET or VISA://hostIP/TCPIP0::deviceIP::INSTR for an LXI or VXI-11 compatible device.

Rolf Kalbermatter
My Blog
Message 2 of 6
(764 Views)

@rolfk, thanks for your response.

 

I tried both the ways, but still getting VISA error: -1073807193

 

port is not opened.

 

any further suggestions please?

 

thanks.

0 Kudos
Message 3 of 6
(717 Views)

I see two scenarios here.

 

1. The host PC is acting as a router.

 

You are probably going to have to setup some static routes on the host and/or client PC.

 

Take a look at the Windows Route command 

 

Also remember if the instruments are VX-11 then they should also have a webpage that can be accessed. If you can access the instrument's webpage from NI-MAX on the client then you should be good to go.

 

2. The host it running a LabVIEW program to handle the networking.

 

I have never done this but I would probably start with the "Simple Date Socket" example in Networking examples. 

 

The client program not going to be as simple as using a VISA resource like scenario 1.

 

There's also a third option of using Remote Panels on the host and simply accessing the panel from the client.

========================
=== Engineer Ambiguously ===
========================
Message 4 of 6
(716 Views)

Guys,

 

Thank you for your time and suggestions. I think VISA://remotehostip/TCPIP0::192.168.1.xxx::port#::SOCKET worked.

 

Here, remote host is the PC where a local LAN equipment is connected.

TCPIP0::192.168.1.xxx --> An equipment is connected to the remote host second LAN card (local) with address 192.168.xxxxx

port# --> refer to equipment LAN port.

SOCKET is the key word for TCPIP communication. 

 

Hope this helps.

 

thanks.

0 Kudos
Message 5 of 6
(623 Views)

@tdpd78 wrote:

Guys,

SOCKET is the key word for TCPIP communication. 

 


Well sometimes it is but not always...

 

Our ethernet DAQ systems have VXI-11, Sockets, and HiSLIP protocols.

 

VX11 and HiSLIP modes do not use sockets 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 6 of 6
(619 Views)