AnsweredAssumed Answered

How ResourceManager.FindRsrc works for USBTMC devices?

Question asked by Rannie on Dec 16, 2019

I have a USBTMC device prototype

 

In VB.net (with VISA-COM 5.0 library reference),
I can open a session using:

Dim manager as New Ivi.Visa.Interop.ResourceManager
Dim session as Ivi.Visa.IMessage = manager.Open(<valid resource name>)

I wanted to get a list of available USB resources using FindRsrc method (manager.FindRsrc("USB0::?*")).
I was hoping I could atleast get 1 return data and used it to create a new session. Unfortunately, the FindRsrc() is throwing exception (error code 0x80040011 - specified expression does not match any devices).

When I tried to create a session (assuming I know the valid resource info for opening a session) right before I invoked the method FindRsrc(), it is returning what I have just opened. Is this really how the resource manager works for USBTMCs? FindRsrc() works fine when I am using it on genuine instrument with USB interfaces.

Best regards,
Rannie 

Outcomes