Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Finding VISA Resources of Instruments connected with LAN

Hi,

 

I'm trying to search and find all instruments that are plugged to my PC and connected to the same network (with LAN).

 

Using:

ResourceManager.GetLocalManager().FindResources( "?*" );

Works great in finding all connected instruments.

 

Is there a way to find all instruments that are in the network?

I'm not sure if I need to use GetRemoteManager and how to use it.

 

Any help would be great.

 

Regards,

 

Dov.

0 Kudos
Message 1 of 4
(3,589 Views)

Hey Dov,

 

For that kind of functionality, I would recommend using the VISA Server functionality, the reasoning for which is explained near the bottom of the following article.

 

National Instruments VISA .NET Library

http://www.ni.com/product-documentation/52841/en/

 

Page 9-24 of the following User Manual goes into more details for getting started with the VISA Server

 

NI-VISA User Manual

http://www.ni.com/pdf/manuals/370423a.pdf

 

The following may help with the initial configuration of the VISA server if you would like to do that with a configuration/non-API way.

 

How Do I Control My VISA Device from Another Computer?

http://digital.ni.com/public.nsf/allkb/F3AB0B5D7DBA367C86257982005BBF2C

 

Best,

 

Shamik C

Applications Engineer 

National Instruments 

http://www.ni.com/support 

0 Kudos
Message 2 of 4
(3,565 Views)

Hi Shamik,

 

Thank you for your fast reply.

 

I'm looking for a solution that won't require any intervention on the remote PC, is there any solution of that kind?

 

Basically scanning the network and discovering all LAN devices.

 

Regards,

 

Dov.

0 Kudos
Message 3 of 4
(3,517 Views)

Remoting to another VISA device like that is considered a legacy technology and is no longer supported. That kind of functionality was removed essentially for security reasons.

 

In order to work with VISA devices on a remote network, I do recommend either using the VISA server, or using ethernet/Serial converter boxes in order to view those devices as virtual com ports on your computer.

0 Kudos
Message 4 of 4
(3,509 Views)