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
(4,095 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

https://www.ni.com/en/support/documentation/supplemental/15/national-instruments-visa--net-library.h...

 

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

 

NI-VISA User Manual

https://www.ni.com/docs/en-US/bundle/ni-visa/page/user-manual-welcome.html

 

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?

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YIFCCA4&l=en-US

 

Best,

 

Shamik C

Applications Engineer 

National Instruments 

0 Kudos
Message 2 of 4
(4,071 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
(4,023 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
(4,015 Views)