LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

"The system cannot find the file specified" when installing the .inf file generated by NI-VISA Driver Wizard

Hello,

I tried to communicate with a USB device using LabVIEW. And I followed the procedure online:

 

1. Install the NI-VISA (version 21.0, my Labview version is 2021 community).

 

2. Generate a .inf file in NI-VISA Driver Wizard:

Xiaochang_0-1645671955934.png

Xiaochang_1-1645671981736.png

 

3. Move the .inf file to C:\Windows\INF.

 

4. Generate a .cat file and a certificate, and sign the .cat file using the certificate, as the steps on https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YH1PCAW&l=en-US.

Xiaochang_6-1645674032126.png

 

5. Right click the .inf file and choose "install".

 

However, it reports an install error "The system cannot find the file specified" when I do step 5.

Xiaochang_5-1645673924461.jpeg

 

And there is an error in the installation information file C:\Windows\INF\setupapi.dev.log.

Xiaochang_4-1645672996815.png

 

I have tried rebooting the computer, re-installing LabVIEW and even the whole NI software, and doing this again on other two computers. But these all didn't work and turned to the same result.

 

 

 

 

0 Kudos
Message 1 of 7
(2,001 Views)

Please provide more information about the "device", make, model and manual.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 2 of 7
(1,990 Views)

The device is a development board fabricated by ST, STM32F746G-DISCO. The manual is attached.

It's shown in the NI-VISA Driver Wizard as the follow picture.

屏幕截图 2022-02-24 125956.png

And a USB communication program running on the MCU has been loaded in it. 

Thanks a lot.

0 Kudos
Message 3 of 7
(1,967 Views)

The particular subdevice of the USB Composite Device that you selected seems to be a HID device. As such it is automatically claimed by the Windows HID driver as soon as you plugin the device and there is no easy way to claim it for NI-VISA.

 

Maybe you need to tell us first what you are trying to achieve. Even if you could claim that interface for NI-VISA you are not even halfway there to be able to use it. You would need to know the exact data byte structure of the HID messages in order to be able to decode the information.

 

And unless you go into a specific test mode of Windows, you can not anymore load a device driver into any modern Windows version without it being properly signed. And to sign a driver you need a Software Signing Certificate that costs around $300 to $400 dollar per year. For recent Windows 10 version self signed drivers are not enough anymore and you need to have them countersigned by Microsoft to let Windows load them without going through a special self signing procedure. This is the error you see. The Windows kernel refuses to load the NI-VISA Wizard generated INF file, since you have not signed it with a valid Software Signing Certificate. And if you use Windows 10 with Secure Boot enabled the driver needs to actually be submitted to Microsoft for signing after you self signed it first yourself. With Windows 11 there won't be a legitimate way to start it up without Secure Boot enabled so be aware of that.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 4 of 7
(1,936 Views)

Thank you very much for your reply.

 

I'm trying to develop a simple software on LabVIEW. In this software, I can send some specified messages to the development board through the USB, and the program in the development board will react to the messages and also send back some specified messages back to the software. This is what I want to achieve. 

 

As for the signature problem, I have seen another method which is to "disable driver signature enforcement" on Win10. I don't know if this method is reasonable, but the error is still the same when I install the INF file. The steps are as follows. 

Xiaochang_0-1645707487794.jpeg

Xiaochang_1-1645707497592.jpeg

Xiaochang_2-1645707543729.jpeg

Xiaochang_3-1645707552868.jpeg

(Then choose 7 on the keyboard while restarting.)

 

And if I want to achieve my goal, do you have any other suggestions?  Thanks a lot.

0 Kudos
Message 5 of 7
(1,924 Views)

It would be a lot easier if the board has networking capability or even a serial port.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 6 of 7
(1,919 Views)

Yeah, actually it does have a serial port and I have realized the same function through it. But the project I'm working on needs the USB function and I'm still learning how the USB communication could be achieved using LabVIEW.

0 Kudos
Message 7 of 7
(1,911 Views)