LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Application works in Develompent Environment but doesn't compile

Hi,

I've a bit weird problem I'm stuck with. I've got quite a big application which runs fine in the development environment. Now I want to compile it. The compilation process takes it's time but in the end I just get an error message: "VI xyz.vi has unsaved changes"!

I don't know how to resolve it. I already recompiled everything in this project and still I get this message anytime I try to create an exe. What's even more weird is, that on another computer all compiles fine.

I just don't understand how this can happen and I don't know where to look for a solution.

Thanks for any hints,
Carsten
0 Kudos
Message 1 of 5
(2,846 Views)
Just a quick check...

try

1. "Save all" VIs in your projects
2. Be sure that none of the VIs used by the project is opened and or copied in memory. If so, quit LV and start LV again.
3. Open a blank new VI
4. Compile and build your app now.

regards
ian
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 2 of 5
(2,826 Views)


@Ian.f wrote:
Just a quick check...

try

1. "Save all" VIs in your projects
2. Be sure that none of the VIs used by the project is opened and or copied in memory. If so, quit LV and start LV again.
3. Open a blank new VI
4. Compile and build your app now.

regards
ian



Hi Ian,

sorry, but this didn't work. 😞

I'll now have a look at the differences of the 2 computers I tested the compilation on.

Thanks,
Carsten
0 Kudos
Message 3 of 5
(2,819 Views)
hi,

try to "save with options" your whole project on both machines. use the "include vi.lib" and the "preserve hierachy" option and then compare the two hierachies on the two machines. maybe there are differences in your vi.libs.

best regards & good luck
chris
Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 4 of 5
(2,819 Views)
Ok, I found the mistake. It's more or less stupid me, because i didn't consider one of the most annoying pecularities of LabVIEW: you can't have two VIs with the same name loaded at a time, *even* if they're located in different directories! This is very nasty because on the one side LabVIEW remembers where you load your VIs from but on the other hand it dosn't distinguish between VIs using the path but just using the file name...

To explain why this was a problem for my project I didn't easily spot, I have to describe the structure a bit. The project basically consists of one main VI which loads some other important VIs dynamically which shall run in parallel (user GUIs) without disturbing the main VI. So more or less the main VI includes two (right now) additional applications which over all can be developed almost separately. So clashing filenames are just observeable if I have open all dynamically loaded VIs or on compilation.

So what I'm most "angry" about is that the error message in the compilation process gives no usefull explanation. It just says "VI a.vi in b.llb is not executable" but it should say addintionally "VI c.vi could not be loaded because a VI with this name is already in memory". That's the explanatory message I get when I open some VIs with clashing names in contained sub VIs in the development environment.

What I'd even more like is that LabVIEW would not only depend on the file name but at least include the path to the VI. Even better would be an included GUID which would be created on "New VI" or on "Save as" which would identify the VI additionally to the name.

Cheers,
Carsten
0 Kudos
Message 5 of 5
(2,808 Views)