LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with building executable

Hello everyone,
 
I am having problems building an executable for one of my applications. This is the error that I just cannot get rid of:
"Error 1003 occured at C:\my_folder\EXE\internal.llb\Analog_Digital_Process.vi. VI is not executable."
 
The application consists of a main dialog, which can dynamically calls six different VI's to perform different functions in my application. The mentioned Analog_Digital_Process.vi is one of the subVI's of the dynamically called VI's and it is actually exectuable contrary to the claim by LabVIEW. When I actually compile the six different VI's individually, there are no problems, but when I try to compile the application where they are called dynamically, I get this error and the buil process stopps.
Anyone has any ideas what could be happening with my application?
0 Kudos
Message 1 of 4
(2,728 Views)

Are you only calling them dynamically? Are they found nowhere in your hierarchy? Are you explicitly including them in the build?

Do they call different VIs with the same name?

Try Placing all of them in a single VI and including that VI in the build.
 
Also, try pressing ctrl+shift+run, which will force compile the VI (like happens when you build an exe) and break your VI if it finds any problems.

___________________
Try to take over the world!
0 Kudos
Message 2 of 4
(2,710 Views)

Yes, they are being called dynamically. If I run the application without creating an executable, everything runs just fine. This is how I include them in the build: the main dialog, from which I call the six different VI's is specified as the "Top-Level VI" and all the six other VI's as "Dynamic VI" in the Source File tab of the Application Builder.

Yes, they do call VI's with the same name. The program is designed such that the six dynamically called VI's share all the SubVI's in the subfolders underneath them. I didn't think that this should be a problem because only one of the six can be run at one time and use those subVI's.

I didn't quite understand what you meant by placing all of them in a single VI. Do you mean like a top level VI, which can call those six, and have the main dialog VI call this top-level VI.

This is the structure of my program:

C:\project\source\Main_Dialog.vi   (top level)

C:\project\source\test1\First.vi, C:\project\source\test1\Second.vi, C:\project\source\test1\Third.vi... and so on (six dynamically called VI's)

C:\project\source\test1\shared1subVIs\...  (folder 1 containing subVIs callable from First.vi, Second.vi etc...)

C:\project\source\test1\shared2_subVIs\... (folder 2 containing subVIs callable from First.vi, Second.vi etc...)

C:\project\source\test1\shared3_subVIs\... (folder 3 containing subVIs callable from First.vi, Second.vi etc...)

Again, the ...\sharedX_subVIs\... contains subVIs which can be used by only one dynamically called VI at a time (either First.vi or Second.vi or Third.vi and so on)

 

 

 

 

0 Kudos
Message 3 of 4
(2,700 Views)

The reason I asked if they call VIs with different names is because if one VI tries to load a subVI and there is already one with the same name, it will take the open one and so it may break and be not executable. I was thinking that even if you only open one at a time, when LV builds it, it loads all of them and may find a conflict.

Placing the VIs First.vi, Second.vi and so on into a single VI will force them to be in memory at the same time so that it is clear. It will also allow you to include a single additional VI in the build, because including that VI (it doesn't need to have any code, just to call those VIs in a non-executing case) will include them as well. 

Also, doing the force-compiling may help. Did you try it?

In general, you don't have to include the VIs in your build. Doing so will actually create copies inside the exe which the exe will call. If the VIs have been compiled (saved), then you copy the directory structure as it is.


___________________
Try to take over the world!
0 Kudos
Message 4 of 4
(2,688 Views)