LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to detect two USB devices with same PID and VID

Hi,

 

I have 2 USB devices with same PID ,VID and other parameters. The inf file is created for the same using the VISA driver development Wizard. 

 

When the first device is connected the USB is detected and works fine. But if the second USB device is connected the when the first is already connected the device is not detected.

 

 

0 Kudos
Message 1 of 5
(6,196 Views)

Hi Sowmya.R,

i think it was not detected because there is no new device for the system. What type of USB devices are you talking about?

 

Mike

0 Kudos
Message 2 of 5
(6,178 Views)

Thanks Mike ...

 

We are able to see the two same devices under NI VISA Manager in System Device Manager (My Computer -- > Right Click--> Properties --> Hardware -->Device Manager). But when the ports are selected in I/O control only one is shown i.e USB0

 

USB device is USB RAW Class

 

Regards,

Sowmya

0 Kudos
Message 3 of 5
(6,159 Views)

Had the same issue.  Lab has many Xitron devices.  Same PID, same VI but different serial numbers. My first device ran great after getting the NI-Visa driver associated with it in a folder called "prefix".  I had to create a new driver for the second unit with a different name "Newprefix".  You can name it anything 2ndDriver etc.  Afterwards, I was able to see both units in the Device Manager under NI-Visa USB and both were visible in NI-Max with the two different raw USB addresses shown.

0 Kudos
Message 4 of 5
(4,835 Views)

You can specify the serial number of the specific device you want to connect to. Use this format when building your resource name: "USB::0x%04x::0x%04x::%s::RAW". The first parameter is the VID, the second is the PID and the last is the serial number.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
Message 5 of 5
(4,832 Views)