LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why won't this vi compile?

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

 

0 Kudos
Message 1 of 11
(2,847 Views)

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.

0 Kudos
Message 2 of 11
(2,836 Views)

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?

0 Kudos
Message 3 of 11
(2,833 Views)

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

0 Kudos
Message 4 of 11
(2,831 Views)

Hi,

 

I could open the VI, run it and after doing some cleanup also compile it into an executable...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 11
(2,819 Views)

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

0 Kudos
Message 6 of 11
(2,818 Views)

Also,

you depend a lot on the avdanced math functions.  Could this be a LV base w/ app builder and eval of math?


"Should be" isn't "Is" -Jay
0 Kudos
Message 7 of 11
(2,798 Views)

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?

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 8 of 11
(2,776 Views)

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

 

 

0 Kudos
Message 9 of 11
(2,756 Views)

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?

0 Kudos
Message 10 of 11
(2,739 Views)