LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

INF Drivers

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...

0 Kudos
Message 1 of 5
(1,506 Views)

Id like to know that if you can explain. 

0 Kudos
Message 2 of 5
(1,452 Views)

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...

0 Kudos
Message 3 of 5
(1,451 Views)

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

 

 

0 Kudos
Message 4 of 5
(1,463 Views)

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.

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