LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

NIDAQ and VISA causes problems when Building Application

Hi,
I have this situation: I have developed and built and application with Labwindows CVI 8.0. This app needs NIDAQmx and VISA 4.0 runtime, so CVI installer selected both items.
I could build and distribute this first version without any problem. (CVI created the distribution in the following directory:"cvidistkit.demo1")
 
Then I made some changes and I was ready to build a higher version of my application, but I couldn't. The problem arises when I check VISA and NIDAQ modules to be included in the distribution... when I do this, the building process starts and suddenly it stops asking me the path for "cvidistkit.demo1 Installer" and it tries to locate it in D:\cvidistkit.demo1 (D is my CD drive).
 
If I don't tell the Installer to include VISA and NIDAQ, it builds the application without any problem. I have re- installed NIDAQ and VISA software but I got the same result. I have even created a whole new workspace , creted a new uir and pasted the old code.. but .. no way!
 
What can I do? suggestions will be very welcome!!
 
Best,
 
 
0 Kudos
Message 1 of 3
(2,855 Views)
Hi Mulan,

I presume you built the first distribution, burned the cvidistkit.demo1 directory (and all contents) to a CD, then ran the installer from that CD as a test.  Am I correct?  If this is the case, then what you are seeing does make sense.  The framework used by the distribution builder keeps track of all distributions that installed NI components on your system.  This includes the ones you build in CVI, if you actually install them on your system (to test them, for example).  The distribution builder tries to minimize the number of distributions (CDs) it prompts you for during the build.  So in your case, after you installed the cvidistkit.demo1 Installer, it realized that it could copy all the components it needs from that one source distribution and will now continue to ask for it during subsequent builds.

You can effectively make the framework "forget" you ever installed cvidistkit.demo1 by removing a registry entry.  Search the keys under HKEY_LOCAL_MACHINE\Software\National Instruments\Common\Installer\Distributions for one with cvidistkit.demo1 in the Title value. Remove that key (and all its subkeys), restart CVI, and try building your distribution again.  This should fix your problem.  If it doesn't, or I've otherwise misunderstood your situation, please let me know.

Also, FYI, in CVI 8.1, you can override this default distribution selection behavior directly from the Drivers & Components tab, so you (usually) don't have to go mucking around in the registry.

Mert A.
National Instruments
0 Kudos
Message 2 of 3
(2,850 Views)

Hi Mert,

You are right !! I've modified the registry settings and the problem was fixed Smiley Happy

Thank you very much for your supportSmiley Wink

Best regards,

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