LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

"Value is invalid or out of range" when building project in CVI 2009

Solved!
Go to solution
I converted a project over from CVI 9.0.1 to CVI 2009, and whenever I try to build the distribution I immediately get the error message "Value is invalid or out of range" and the build stops.  This error message isn't too terribly helpful in determining what is wrong, and I can't see anything obviously amiss in the "Edit Installer" panels.  Any idea what is going on?  Thanks.
0 Kudos
Message 1 of 11
(7,796 Views)

Could you tell me the full CVI version number from the splash screen that comes up at startup, or from Help>>About LabWindows/CVI?

 

Also, would you mind posting your .cds file? I do not need the entire project -- just that file.

 

Thanks.

 

Mert A.

National Instruments

0 Kudos
Message 2 of 11
(7,790 Views)

I'm running Version 9.1.0 (427)

Attached is my .cds file.  I had to zip it because the forum says .cds is not a valid extension for an attachment.

Thanks for the help!

0 Kudos
Message 3 of 11
(7,787 Views)

During the Beta, we had found an issue just like yours that had to do with the build progress times saved in the .cds, which is why I had asked about the version. I don't see anything immediately wrong with the .cds you posted, so I'd like to see if some internal logging might shed some light on this. Please follow these steps:

 

1. Close CVI.

2. From the CVI2009/bin directory, run ConfigCVILogging.exe.

3. In the panel, make sure the top radio button is set to Environment, and the Version ring has "9.1" selected.

4. Ensure the boxes for Fatal, Error, and Warning are checked, then set the output radio selection to File. The default filepath is fine.

5. Hit the Apply button.

6. Run CVI, try to build your distribution, and close CVI.

7. Post the output file (default is C:\CVIDebugLog.txt) back here.

 

Mert A.

National Instruments 

0 Kudos
Message 4 of 11
(7,774 Views)
Hi.  I did as you asked, and attached is the log file.  Doesn't make much sense to me but hopefully tells you something.  Thanks for the help!
0 Kudos
Message 5 of 11
(7,768 Views)
Solution
Accepted by topic author tstanley

Well, I'm a bit confused by what I'm seeing. The log does confirm my earlier suspicion that one of the cached build progress timing values is causing an error. However, the values in the 'TriboScan OFFLINE.cds' file you posted appear fine and don't cause an error when I copy them into another simple distribution's .cds (since I did not have the files to test building your actual distribution). Are you certain that you're building the 'TriboScan OFFLINE.cds' distribution? In any case, I would recommend a little hand editting of the offending .cds. Back it up first (just in case), open it in a text editor, and remove everything between <buildData ...> and </buildData> (this should be right at the bottom). This ought to solve your problem.

 

Let me know what you find.

 

Mert A.

National Instruments

Message 6 of 11
(7,756 Views)
I deleted that section out of the file, and tried a few builds and it seems to work now.  Thanks for the help!  
0 Kudos
Message 7 of 11
(7,752 Views)

I am seeing this same annoying problem with the non-informative error message while trying to build a distribution that I've built many times in the past without problem.

 

I deleted everything in <build data ...>    at the end of the CDS file but it did not help initially.  I next deleted the dist folder and the build folder and restarted CVI and it finally created the dist kit without any apparent error.

 

I am using the same version / build of CVI 2009 as the original poster.

 

I do believe I relocated the folder containing the sources, proect, workspace, cds, etc. files to another location on the same drive.  Usually CVI accommodates this all OK, I was able to build and execute normally after the file move, only saw the problem with the dist kit build.

 

Additionally, I got a popup message "cannot find cws file" when starting up CVI when it goes to load the last loaded CWS.  But, CVI did load the CWS and everything in it all OK, the CWS file did in fact exist where the error message said it was looking !?!?  Then, after doing this several times, CVI spontaneously stopped presenting the error message at startup.

 

So I think something's "sticky" somewhere in the CWS file maybe that's not getting cleaned up when the CWS and the files it references are moved.  Or maybe this isn't allowed behavior?  CVI used to have problems when relocating project files but the last few versions had seemed pretty accommodating.

 

 

Menchar

Message Edited by menchar on 03-23-2010 01:24 PM
0 Kudos
Message 8 of 11
(7,408 Views)

I should have mentioned that you need to restart CVI (or otherwise unload/reload the .cds) before your hand edits take effect.

 

Mert A.

National Instruments

0 Kudos
Message 9 of 11
(7,405 Views)

Mert -

 

I had restarted it after deleting the section in the cds file, it appears to me that deleting the dist and build folders is what fixed it.

 

Menchar

0 Kudos
Message 10 of 11
(7,403 Views)