03-27-2018 07:59 AM
I've made an application based on the USB-RAW Bulk and Interrupt examples to communicate with my custom device. In order for my device to be recognised by VISA and MAX, I had to generte the driver with the Driver Wizard. This set up works, but if i plug in a different device (same VID&PID) windows automaticly uses the hid.dll driver. What can I change, to make every device (my custom device with fixed IDs) recognised by VISA, even on first connection?
04-11-2018 03:05 AM
Hi PJ,
the assignment of drivers to devices is done by Windows. I attached a link that can help you with this issue:
How Windows determines the most suitable device driver to install during Setup
https://support.microsoft.com/en-us/help/279112/how-windows-determines-the-most-suitable-device-driv...
Best,
Melanie
07-11-2018 04:53 AM
Do you know way to aumaticly update the driver, with a .bat file ?
On XP , i used DEVCON. It worked perfectly.
Devcon update c:\windows\inf\custom.inf USB\VID_12BF&PID_F021*
But it give failed on Win7
08-02-2018 02:43 AM
Hi AF001,
the drivers under Windows 7 are usually updated by Windows Update or for NI drivers via NI Update Service.
Best,
Melanie
09-22-2019 06:58 AM - edited 09-22-2019 06:59 AM
I had the same issue. HID was preempting my custom VISA driver. I messed around for an hour with devcon without success and I eventually found a most simple way to switch driver:
- right click your .inf and [install]
- open [System][device manager]
- my device appears on 2 separate lines under the HID category, one is HID (delete this one), and one is USB
- right-click that one and [Replace Driver]
- go through all the choices (3 in a row) to select manually
- and finally you'll see a list that includes your already installed custom driver. Select that, reboot and tadum!, it appears in MAX !!!