LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA library for C++

Hello, I want to scan all devices connected by LAN. So I used function viFindRsrc.

 /*
* Find all the VISA resources in our system and store the number of resources
* in the system in numInstrs. Notice the different query descriptions a
* that are available.
Interface Expression
--------------------------------------
GPIB "GPIB[0-9]*::?*INSTR"
VXI "VXI?*INSTR"
GPIB-VXI "GPIB-VXI?*INSTR"
Any VXI "?*VXI[0-9]*::?*INSTR"
Serial "ASRL[0-9]*::?*INSTR"
PXI "PXI?*INSTR"
All instruments "?*INSTR"
All resources "?*"
*/

But only these INSTR can be found, no tcp devices found.

How can I handle this problem?

Thanks!

0 Kudos
Message 1 of 2
(1,335 Views)

@David882563 wrote:

 

But only these INSTR can be found, no tcp devices found.

How can I handle this problem?


Unless it is a VXI-11 compatible device, there is no way VISA can detect them. TCP/IP does not contain a standard method to discover devices. There are almost a zillion different methods that the various devices implement from Bonjour to Windows Plug and Play, LanManager, NetBEUI. ZeroConfig, etc. etc. If VISA tried to implement even a fraction of them, its development would never have been finished and a network scan could last hours before it has gone through all of them. The VXI-11 standard also foresees a discovery service and VISA supports that if a device supports it. Otherwise you have to consult the device documentation to see what discovery services it supports and implement one of them yourself.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 2 of 2
(1,269 Views)