Hello All,
I have a COM server application written in C#. When I run this application I get 2 type of addresses back for one usb device as follows:
USB0::2391::280::MY48220507::0::INSTR;
USB0::0x0957::0x0118::MY48220507::INSTR
I was hoping to get only either one of the addresses (decimal preferably)
The code is as follows:
public class Usb { ResourceManager rMgr = new ResourceManager(); FormattedIO488 src = new FormattedIO488(); object resources = null; public string OutputResources() { resources = rMgr.FindRsrc("USB[0-9]*::?*"); string[] resource_list = (string[])resources; string allResources = String.Join(";", resource_list); return allResources; } }
I find the resources using "USB[0-9]*::?*"
I tried using it as "USB[0-9]*::?*::?*::0::?*" and it gives back USB0::2391::280::MY48220507::0::INSTR;
But I am not sure if this is correct way to find resources.
Does the USB board number and the interface number changes every time?
Is there a better way to get back USB VISA address?
Thank you in advance!