08-02-2016 08:18 AM
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.
08-03-2016 02:11 PM
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
08-10-2016 02:24 AM
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.
08-10-2016 03:36 PM
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.