Hi,
I'm posting a simple example that detects s/n of a USB device.
It just uses VISA function to detect the first configurated USB resource and its serial number.
VISA functions describe USB device following this scheme:
USB[board]::vendor id:: product id::serial number[::interface number][::INSTR]
(for example USB0::0x3923::0x717B::00E07079::RAW)
Tell me if it suits your needs (or at least if it helps you! 😉
Regards
NicolaC.
National Instruments