LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

labview executable file

I created an executable file but find it a bit strang that every time I double click on the *.exe file it will ask me to open a main labview file? I'm not really sure is this how labview executable file works...
0 Kudos
Message 1 of 7
(3,238 Views)
One possibility is that when you created the executable you didn't assign any source files to the build. The result would be a runtime executable that knows how to run VIs, but doesn't have any built in to run--so it asks which one you want to open and run.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 7
(3,238 Views)
Thanks Mike, it's working now but when I click on the .exe file it runs straight away is there anyway to stop it from doing that?
0 Kudos
Message 3 of 7
(3,238 Views)
> I created an executable file but find it a bit strang that every time
> I double click on the *.exe file it will ask me to open a main labview
> file? I'm not really sure is this how labview executable file works...

I think you managed to build an EXE that doesn't have a VI marked
top-level or isn't marked to Run when Opened. This is similar to
telling LV which function is main(), or where does execution start.

Greg McKaskle
0 Kudos
Message 4 of 7
(3,238 Views)
What is it that you want it to do?

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 5 of 7
(3,238 Views)
I just want to open the executable file without executing staight away I want it to be executed only when the user press the run button.
0 Kudos
Message 6 of 7
(3,238 Views)
Ok, all you need to do is create a wrapper around your existing code that only starts the execution of your main function when the operator presses a button. This wrapper could be as simple as a while loop with a case structure in it. The FALSE case would contain nothing but a short wait. The TRUE case (which is selected when the operator clicks the button) would call your existing VI.

A second "Cancel" button would probibly also be useful to allow you to break out of the loop without running anything.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 7 of 7
(3,238 Views)