pyvisa / pyvisa-py

A pure python PyVISA backend
https://pyvisa-py.readthedocs.io
MIT License
288 stars 124 forks source link

USB ::INSTR resource names have decimal-encoded VID/PID #89

Open areusch opened 8 years ago

areusch commented 8 years ago

It looks like in pyvisa-py/usb.py USBInstrSession.list_resource, the returned resource names include the USB vendor id and device id using the 's' formatter. This means they are listed as decimal in the resource name, which makes filtering difficult when switching PyVISA backends. I might be misreading the spec, but according to rule 4.3.1, I think pyvisa-py should use '#06x' to insert the VID/PID.