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
Hi Rannie,
In case you do not have solution yet, you could try "USB0?*" "USB0::?*". Here is a good reference I found online Finding VISA Resources Using Regular Expressions - NI-VISA 15.0 Help - National Instruments
Regards,
Eagle8305