LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Broken arrow in compiled version

Hi Forum

 

I have an odd issue with my LabVIEW code.

 

The issue is, that I have some code that runs fine in my developer version of LV 8.6. But as soon as I compile it into an .exe file and tries to run it, I get a broken arrow and a message about several missing VIs. I have tried to force a recompilation of the VIs in question and resaved them all, so the references to the VIs should be fine. And as mentioned it runs fine in developer mode. 

 

I have attached three screen shots below, one showing the application running in developer mode, one with the broken arrow, and one with the error messages returned. I have also tried to search both the forum and Google for the problem, but can't find any similar issues, so any suggestions would be appreciated.

 

Best Regards

 

Martin

 

running.JPG broken.JPG errors.JPG

0 Kudos
Message 1 of 11
(4,260 Views)
You have not included your subvis I suppose.
0 Kudos
Message 2 of 11
(4,250 Views)

Hi Martin,

 

it would be a great help if you could add those images unscaled or as attachment Smiley Wink

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 11
(4,247 Views)

original.jpg

 

 

gerdw,

For your reference

0 Kudos
Message 4 of 11
(4,244 Views)
No problem, thought it was easier for people to see them directly
Download All
0 Kudos
Message 5 of 11
(4,243 Views)

Hi Martin,

 

all vis are from vi.lib, so ther eprobably something went wrong on building the executable.

Could you try to separate the problematic subvis (ReadWrite StartOptions and StartTester) and make a smaller build of them to verify the app building is ok?

 

P.S.: On my IE7 at work all pics were downscaled and unreadable...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 11
(4,222 Views)

@MUKS

 

Do I realy need to include all my subVis manually when building an .exe file?  Sounds like quite a lot of work when you are dealing with large applications.

 

/Martin

0 Kudos
Message 7 of 11
(4,217 Views)

Yes, the project needs the subVIs or a computer without the subVI's will not know how to handle the code.

When you are building the exe, go to the 'source files' menu.

Add your main VI to the Startup VI's. Add all your subVI's to 'always included'.

They should all be listed as dependencies if you use them in your top level VI, so they shouldnt be too hard to find.

Cory K
0 Kudos
Message 8 of 11
(4,184 Views)

Normally, the default build process should handle it automatically for you.

 

But: I've seen it once in a project that SubVIs where not included. It even could reproduce it by creating a new build script. Non of them was from vi.lib, they where all my own. This was using LV 7.1 and OpenG Builder. I didn't find any explanation for it and could live with the workaround that I added all missing SubVIs as 'dynamic VIs' in the OpenG builder.

 

So there might be some bug lurking deep down in a hidden cave of the AppBuilder.

 

Felix

0 Kudos
Message 9 of 11
(4,181 Views)

 


 @MUKS

Do I realy need to include all my subVis manually when building an .exe file?  Sounds like quite a lot of work when you are dealing with large applications.


 

 

Yes The exe needs Proper linking with your subvis. As cory and felix has explained the build process should take care of this automatically. Did you play around with any default settings of the builder?
Message Edited by muks on 07-31-2009 01:01 PM
0 Kudos
Message 10 of 11
(4,158 Views)