Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15537

Multiple USB Ids

$
0
0
Trying to connect to multiple Keysight devices using USB & GPIB. For some unknown reason, I See 2 USB ID for the USB Devices.

I only want to be able to select one using my dropdownlist. it seems like one ID is in Hex and another in decimal.

How can I only be able to able to see 1 in the dropdownlist.

Code Code:
  1. Public Sub VisaresourceLoad()
  2.         On Error Resume Next
  3.         Dim Resourcemanager As New Ivi.Visa.Interop.ResourceManager
  4.         Dim ArrayVisaResourcesLoad() As String
  5.         ArrayVisaResourcesLoad = Resourcemanager.FindRsrc("?*INSTR")
  6.  
  7.         If ArrayVisaResourcesLoad.Length > 0 Then
  8.             PSComboBox.Items.AddRange(ArrayVisaResourcesLoad)
  9.             DMM1ComboBox.Items.AddRange(ArrayVisaResourcesLoad)
  10.             DMM2ComboBox.Items.AddRange(ArrayVisaResourcesLoad)
  11.             PS2Combobox.Items.AddRange(ArrayVisaResourcesLoad)
  12.         End If
  13. End Sub
Name:  Multiple USBID.PNG
Views: 61
Size:  6.9 KB
Attached Images
 

Viewing all articles
Browse latest Browse all 15537

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>