LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

making executable files from vis

Hi,
 
I am trying to make an executable file from vis. I have four subvis inside a main vi. Four booleans opens up my each individual subvis. Now when I make an executable,its works withoiut an error. Now when I run the program, my main vi opens up with four boolean. Now two of the boolean works perfect but the other two gives the window error. Can someone help me in this regard. I dont see why the two booleans would give me error. What could be the possible cause?
 
Thanks
 
SAL
0 Kudos
Message 1 of 33
(4,482 Views)
We need more information about your program. Could you post the code or an image showing when you call the subVIs? Depending on how you are calling your suBVI, you need to take into consideration that the executable add a level to the address of your VI. So, if the VI is in the same directory of your main VI:

.\mysubvi.vi

Once complied the new address is:

.\myexe.exe\mysubvi.vi

If you just dropped the VI in the diagram, then you can ignore this.

Regards;
Enrique
www.vartortech.com
0 Kudos
Message 2 of 33
(4,464 Views)
Hi,
 
I am sending the detail here.
The main has the four booleans(a,b,v,m) as you can see And each boolean when pressed opens a new window and runs the particular program. When I make an exe everything compiles good but when I click on the b or m the you get this window error saying there is some problem and it closes the program. a and v works pretty good. So I am not sure what is causing the exact problem.
Any suggestion is appreciated.
 
Thanks,
 
SAL
 
 
0 Kudos
Message 3 of 33
(4,460 Views)
It would be a great help if you could be more specific about the error you are receiving. Is there any particular error code? Also, I'm a bit confused about when this error started occurring. Did the VI ever work on the development system, or is this only a problem with executables? Which version of LabVIEW are you using?
Jarrod S.
National Instruments
0 Kudos
Message 4 of 33
(4,451 Views)

The vi works great. I am currently using it for testing. Everything works great. but after I make an exe file then the two booleans gives error out of four.

 I am attaching the error.

Thanks

 

0 Kudos
Message 5 of 33
(4,438 Views)
by the way i am using labview 6.0.
0 Kudos
Message 6 of 33
(4,440 Views)
 

Have you installed the patches for LabVIEW 6.0? The latest patch is LabVIEW 6.0.2 and is available free for download. You should definitely have the latested patch installed.

Also, can you check your Application Builder settings to make sure that the front panels for your 2 subVIs that cause the crash aren't being removed? LabVIEW 6.0 would sometimes mistakenly remove the panel, which would of course cause the crash if you tried to call the subVI and view its front panel. Also, VIs that Property Nodes or Invoke Nodes shouldn't have their front panels removed, since these rely on front panel data.

You can check these settings from the VI Settings tab of the Application Builder as seen below:

To modify these settings, click the Edit Build Settings button to see the following dialog:

 

 

Message Edited by Jarrod S. on 03-22-2006 02:37 PM

Jarrod S.
National Instruments
Download All
Message 7 of 33
(4,434 Views)

Hi Jarrod,

I looked into the setting and all that you have suggested. Everything seems to be okay. All the front panels that needs to be opened have yes in the respective columns. And I tried to make an exe file again. I run into the same problem. Out of four booleans in my program,two of them runs fine but when I click on either of the other two booleans that dont work, I get this error message and the program terminates.

I have absolutely no idea what is going on.

Thanks

SAL

 

 

0 Kudos
Message 8 of 33
(4,413 Views)

HI Sal,

I noticed that from the error message you posted, it looks like you are (or were using) 6.0.  I just wanted to make sure that you got the upgrade to 6.0.2 like Jarrod suggested.   If you're using 6.0.2 and all of your front panels are included in the executable, then it may be just time to dig into debugging.

I think you said that each of the four buttons launched a different subVI.  What is happening in these subVIs?  Are you calling a DLL or using a particular instrument driver?  Are you doing any File I/O?  Frequently paths are the problem when a VI works fine but an executable has problems.  Is there any difference between the subVIs which work in an executable and subVIs that don't?  What happens if you try making each of the four buttons launch the same subVI?  Try one of the ones that work, AND one of the ones that doesn't?  Also, if you take out the subVIs and simply put message pop-ups for each of the buttons, do you still get the error in the executable?

I know this is a lot of questions, but hopefully they will help us pin down the problem.
Let us know what happens!
Megan B.
National Instruments

0 Kudos
Message 9 of 33
(4,399 Views)

Hi Megan,

Yes I think I need to start debuggin in the software to see what exactly is causing the error. As far as my sub vis', Yes the four buttons launch four individual vis. And inside are some formulas, dll and serial/channel  read in and out. That shouldnt be causing any problem, shouldit? Each of individual subvis runs fine. The two button that doesnt work has one thing in common, I am not sure if its causing the problem. It reads the serial port. I will try to do some more things and lets see if I can get around with it.

Thanks

SAL

 

 

0 Kudos
Message 10 of 33
(4,386 Views)