05-05-2011 09:00 AM
Hello everyone,
I've been programming in LV for over 12 years now. 2010 version is new to me though.
This short VI gives me an error 5 when trying to build it.
I've tried to remove parts and find what's bothering the compiler. It seems that a few differents parts do - the express fit, the variable substitutor, the golden section.
This is perplexing...
Hope someone can see the problem too, and maybe offer an explanation.
Neat-sun
05-05-2011 09:10 AM
I open the vi you sent and it open with no problem and indicates the vi has no compile problems. I saved it and did a mass compile and showed no problem.
I seen some problems with Labview setups where they saved some system files in different locations.They were old and caused all kinds of issues.
05-05-2011 09:14 AM
I was able to open the VI in 10.0f2 just fine. No broken run arrow, and it ran just fine, as far as I could tell. I also forced a recompile, and it compiled just fine. What are the exact errors that you are getting? Do you have an earlier version that you can compare to? What happens if you drag the contents of the block diagram onto a new VI? Does the new VI compile without issue?
05-05-2011 09:15 AM
Deep inside the Golden Section VI is an obsolete VI: (Incomplete) Gamma Function (obs).vi. I suspect that that may be the problem. I was able to build an application but when I try to run it, that VI fails.
Try to update that.
Lynn
05-05-2011 09:18 AM
05-05-2011 09:19 AM
I was able to build an application from this VI and run it with no problems in LabVIEW 2010 SP1. Are you seeing a problem when you try to run the VI, or when you try to build an application? If the problem is with building an application, can you attach your project with the build specification?
Chris M
05-05-2011 11:40 AM
Also,
you depend a lot on the avdanced math functions. Could this be a LV base w/ app builder and eval of math?
05-05-2011 02:50 PM
When you say compile, do you mean the momentary delay after pushing the run arrow after making changes (when LabVIEW compiles its code) or as a previous poster asked, are you trying to make an exe in application builder?
05-08-2011 06:45 AM
Thanks to all who replied.
I am talking about BUILDING the application.
I downloaded GerdW's updated file and I got the same result when buliding the app. (error description is enclosed)
I saved the file in a new directory (c:/labview) and tried again - and now build works.
Perhaps LV has a problem with the long directory hierarchy? Or spaces within the directory names?
I did once get an error about long directory name (above 256 chars, and remember that LV doubles the length since it repeats all your directory hierarchy, so actual limit is around 128 chars). Anyway, the error was explicit that the directory name is too long and It didn't leave me guessing as here.
Thanks
05-08-2011 08:37 PM
That error is telling you the builder can't create the application because the application is already running, and it can't overwrite an application that has been opened by the operating system. Do you have it running? Have you checked your list of processes?