Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmx API event to detect USB device hot plugged in

Solved!
Go to solution
Solution
Accepted by topic author sradbil

Hi Sherryl,

 

You are correct that NI USB devices have a VID of 0x3923.  You can see this from the usb.org company list. However, not all NI devices are USB devices.  If you were to run your test on a PCI or PXI device you would get a different VID (0x1093).  This is NI's PCI vendor ID.

 

NI C Series modules are not USB devices.  They are used in a variety of chassis which themselves use a variety of busses which is why they do not identify themselves as NI USB devices.  The only gray area that I know of would be a C Series module in a 1-slot chassis like the USB-9162 which will identify using the USB VID and name like "USB-9233" because it is really identifying the chassis and not the individual module.

 

As far as I know, all NI USB devices use a VID of 0x3923.  All other NI devices use 0x1093.

0 Kudos
Message 11 of 13
(1,861 Views)

Hi Mark,

Quick follow up question.

 

In my CompactDAQ chassis I have 5 modules that return these strings when inserted:

\?\{5e9419d9-6dde-45bd-81e3-03eb116c8ad5}#VID_1093&PID_7265&CDAQ_9172&Bus_USB#0126ff7a#{5312f5bb-8f99-4e18-b464-1a0a845fc4cb}
\\?\{5e9419d9-6dde-45bd-81e3-03eb116c8ad5}#VID_1093&PID_71b4&CDAQ_9172&Bus_USB#012730e9#{5312f5bb-8f99-4e18-b464-1a0a845fc4cb}
\\?\{5e9419d9-6dde-45bd-81e3-03eb116c8ad5}#VID_1093&PID_72c5&CDAQ_9172&Bus_USB#0134eba7#{5312f5bb-8f99-4e18-b464-1a0a845fc4cb}
\\?\{5e9419d9-6dde-45bd-81e3-03eb116c8ad5}#VID_1093&PID_7165&CDAQ_9172&Bus_USB#012620b2#{5312f5bb-8f99-4e18-b464-1a0a845fc4cb}
\\?\{5e9419d9-6dde-45bd-81e3-03eb116c8ad5}#VID_1093&PID_72c3&CDAQ_9172&Bus_USB#01351358#{5312f5bb-8f99-4e18-b464-1a0a845fc4cb}

 

It seems that the first part of the string:

\\?\{5e9419d9-6dde-45bd-81e3-03eb116c8ad5}

is a GUID that replaces:

\\?\USB

which we see for real USB devices.

 

Questions:

Do all CompactDAQ modules use the  5e9419d9-6dde-45bd-81e3-03eb116c8ad5 GUID?

If yes, can we count of future CompactDAQ modules also using that GUID?

 

 

 

Sherryl Radbil
Data Acquisition Engineer
The MathWorks
0 Kudos
Message 12 of 13
(1,824 Views)

{5e9419d9-6dde-45bd-81e3-03eb116c8ad5} is the Compact DAQ bus-type-guid.  Just as USB is enumerated with "USB\specific-device-ID" and PCI "PCI\specific-device-ID", Compact DAQ enumerates the Compact DAQ bus in the format "bus-type-guid\vendor-specific-id".  See this MSDN page for more details.  Starting in DAQmx 9.0, all C Series modules in a Compact DAQ chassis will enumerate in that format.  This includes future modules.  C Series modules outside a Compact DAQ chassis, for example, in a USB-9162 carrier, will not enumerate with the Compact DAQ bus-type-guid.

 

The GUID should not change (I can't say with perfect certainty but I think it would be highly unlikely).

0 Kudos
Message 13 of 13
(1,819 Views)