03-24-2021 12:54 PM - edited 03-24-2021 12:57 PM
Hi.
I created drivers for my instruments using NI VISA Wizard....
So now I have Factory Driver and the one I created ....
Factory Driver we use it to see summary as customer do it...
But my driver is used to check some parameters automatically...
My problem is, in daily activities we need to change from Factory Driver to My Driver, and to My Driver to Factory Driver, so often...
We go to device manager search for my device, update the file and continue with the activities...
Is there any way to do that using labview?
So when I open my program do all that steps only with software...
03-24-2021 12:42 PM
Id like to know that if you can explain.
03-24-2021 12:43 PM
I need to change inf default file using labview...
For example the product has DRIVERFROMFACTORY.INF
and MYDRIVER.inf
Id like to change it as I need in the program...
03-24-2021 04:50 PM
You could try using PnPUtil from the command line to delete one driver and add another:
https://docs.microsoft.com/en-us/windows-hardware/drivers/devtest/pnputil-command-syntax
You will have to run LabVIEW as administrator:
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000001DkmlCAC&l=en-US
03-25-2021 02:35 AM
LabVIEW has no built in functions for this. Calling the Windows API for this (SetupAPI) is a very painful process since its function parameters are complex and not suited to easily be called by a LabVIEW Call Library node.
The suggestion to call an external command line tool like pnputil is by far the most promising and easy to implement.