LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Target Builder using with multiple CVI version installed

Solved!
Go to solution

Hello,
I just upgrade my CVI version from 2012 to 2019, so I’ve the both version my computer.

The creation of my application setup is automatized through Jenkins pipeline and I’m using the “Target Builder” tools to build my projects.

But even I select the target in the “Users\Public\Documents\National Instruments\CVI2012\samples\activex\cvi” directory, my projects are built by using the CVI 2019 version and not the 2012 one.

Someone know how to enforce the version selection with the “Target Builder” tools?

Thanks a lot for your feedback 😀

0 Kudos
Message 1 of 3
(2,733 Views)
Solution
Accepted by topic author ArnoG

If you're trying to use ActiveX to build your projects, you need to know that Windows will always use the registered version of the CVI ActiveX server, regardless of your working directory. For the case of CVI, this will typically be whichever version of CVI you ran most recently. You can see which version is registered by inspecting the following registry key:

 

HKEY_CLASSES_ROOT\Wow6432Node\CLSID\{5AB151E3-414A-11D0-A62C-0020AF16F78E}\LocalServer32

 

If you care about which version of CVI you use to build your project, I recommend that you not use the ActiveX server. You could instead use the command-line compiler, which allows you to specify the compiler's executable directly and therefore which version of CVI you want to use.

 

Luis

Message 2 of 3
(2,622 Views)

Thanks a lot Luis, your solution is effectively the best way !

0 Kudos
Message 3 of 3
(2,607 Views)