11-04-2008 03:32 AM
Hello,
I am running CVI 8.5.1 with the current drivers. The computer (Win XP SP3) is equipped with two Ethernet boards, one for Internet access, one for a private measurement network (IP 192.168.x.x.)
Now I want to find all the instruments that are ON and connected to the LAN, and for this purpose I thought to use viFindRsrc as I do to find all my serial instruments. Queries I used were "visa://192.168.1.1/?*" and "TCPIP0::192.168.1.1::?*INSTR" (the LAN board is the first found by GetAllTCPHostAddresses, thus TCPIP0), and the IP of the computer on the LAN is 192.168.1.1.
Unfortunately, none of these queries returned any instrument (return count 0). Since this is my first encounter with Ethernet based instruments, I would appreciate any help.
Thanks!
11-04-2008 09:20 AM
viFindRsrc on the LAN doesn't go out and discover instruments on the LAN. It only looks for preconfigured instruments that were found with NI-MAX - which doesn't help if their IP address changes.
I have tried to get the VISA WG to change this but failed - they say it would be too slow!
11-05-2008 01:16 AM
Thanks! I do not like the answer, unfortunately... The documention claims something very different (The viFindRsrc operation matches the value specified in Expression with all known resources), and it would be very sad if my applications can run only on systems with MAX. CVI executables should be able to talk to Ethernet instrument without MAX, too, so probably there is an alternative approach... I am aware of a device vendors software utility that easily finds all the instruments of this vendor on all LANs, within a second or so.
So I would be very glad about assistance for accomplishing something similar in CVI, and if this involves using a different function I wouldn't mind 🙂
Thanks,
Wolfgang
02-26-2020 08:47 PM - edited 02-26-2020 08:48 PM
More than a decade has passed. I don't know why the problem hasn't been solved yet?
At present, I still can't use visa32.dll to successfully search the instrument on the network.
02-27-2020 08:48 AM
If the instrument supports LXI 1.3 or greater then it has mDNS (Bonjour/Avahi) and should/will be discovered by viFindResource. Its just instruments that support VXI-11 discovery will not be found as it takes too long (apparantly)
04-23-2020 09:08 PM
HI
I can't find viFindResource() in visa32.dll. Can you tell me how to call it
thank you