LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Building an executable hangs Labview

Solved!
Go to solution

I'm trying to build an executable within LV2017 / 2018 32bit.

 

When i use a simple vi with just a switch and indicator, it works.

But i'm using the AD2 toolkit from Digilent, and i think this causes it.

 

It starts to initialize and build, but almost at the end it stops forever.

No error message.

I need to close Labview with Task Manager.

 

What can i do ....

 

 

0 Kudos
Message 1 of 12
(2,398 Views)

The first thing I would do is add NI_AppBuilder_Logging=True token to your LabVIEW.ini to get a detailed build log, then you can go into it after the build gets stuck to see where exactly it got stuck at. Not saying you'll glean any info from the log, but it's a troubleshooting start.

 

Also, see if you can generate a preview of the build. Whether you can or can't might be helpful info for troubleshooting as well.

 

Edit: One more thing that may help in troubleshooting is to make an absurdly simple VI that basically has nothing but a loop, a stop button, and a couple VIs from the toolkit in question, and try to build that into an executable.

Redhawk
Test Engineer at Moog Inc.

Saying "Thanks that fixed it" or "Thanks that answers my question" and not giving a Kudo or Marked Solution, is like telling your waiter they did a great job and not leaving a tip. Please, tip your waiters.

0 Kudos
Message 2 of 12
(2,381 Views)

Try to collect more info: does the Preview gives any hint? (not sure if this can help); also, generate the build log file (Category Advanced).

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 3 of 12
(2,379 Views)

Good advice so far....

 


@Rockyenco wrote:

It starts to initialize and build, but almost at the end it stops forever.


"Forever" cannot be proven unless you really wait forever, which is impossible :D.

Just curious. How long did you wait before giving up?

0 Kudos
Message 4 of 12
(2,364 Views)

I haven't really seen "forever", but I have seen some "absurdly long" build times!  😄

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 5 of 12
(2,352 Views)

You have an external library (from Digilent, as I recall).  You'd like to think that when you build, the Linker will find and link "foreign" libraries and DLLs for you, but that may not always be the case.

 

You might give Digilent a call and tell them you are having trouble building an Executable while using their modules.  I recall a colleague with third-party LabVIEW compatible devices (things like the NI USB-6009) which had a similar "build" problem, but once we added the correct library to the "Always Included" part of the Build Spec, it went very well.

 

Bob Schor

0 Kudos
Message 6 of 12
(2,335 Views)

Hi.

 

I tried with a simple vi (Button + indicator) and that builds without an issue in only several seconds.

I can make a preview of the build. (see attached pictures)

The build starts, but got stuck almost at the end. 

" Had It Run for More Than 2 Hours... "

 

see attached files


0 Kudos
Message 7 of 12
(2,294 Views)

Okay, yes, something seems amiss!  Did you try what Bob suggested?

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 8 of 12
(2,279 Views)

@billko wrote:

Okay, yes, something seems amiss!  Did you try what Bob suggested?


In particular, in the Digilent AD2 Zip file you included, the folder DigilentWF, which seems to contain all of the Digilent VIs needed by Digilent_Waveforms_Stimulus Response (MSI + DIO TOM).vi is missing.

 

It is extremely difficult for us to really help Forum users (such as yourself) who don't give us the "tools" we need to help you fix your LabVIEW Projects.  I generally suggest that you compress the Folder that contains your Project, which usually includes all of the sub-VIs that you are using, and attach the resulting .zip files.  However, if you are also using external third party routines (such as those contained in DigilentWF), and the problem involves those VIs, it is difficult to diagnose and help you "fix" the problem without your also including those files.

 

Try my suggestion.  In your Build Specification, include the routines found in DigilentWF in the "Always Included" section.

 

Bob Schor

0 Kudos
Message 9 of 12
(2,269 Views)

I tried Bob's suggestion by adding those external Vi's to the "Always included" section.

But still the same respons.
I already mentioned, but each time i have to close Labview with the task manager......

0 Kudos
Message 10 of 12
(2,124 Views)