LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

application builder executable

PROBLEM
I have an executable created by Application Builder 8.  The application has a front panel with several controls, but starts up and runs immediately when you double click on the .exe without letting you set the controls first. Upon startup it asks for a file to log data to.  The only way to change the front panel controls is to cancel out of the file dialog (which --> error condition) or to give it some file name and then stop the application.
 
WANTED
Is there any way to open the executable without having it start to run, or is there a switch in Application Builder so the executable just opens to its front panel and does not run?  I would then be able to start it after setting the controls by selecting RUN from the OPERATE pulldown.
 
 
0 Kudos
Message 1 of 6
(3,191 Views)

Hello,

You can specify in the Build Settings that you don't want the VI you're building into an EXE to run when opened.  Go to Source File Settings, select your startup VI, then in the "VI Settings" list on the right, deselect the "Use VI Setting" option for "Run When Opened", and make sure the Value is unchecked, meaning you do not want the VI to run when opened as an EXE.

Hope this helps,

-D

0 Kudos
Message 2 of 6
(3,180 Views)
Set the executable so that it sits in an idle loop until the user presses a Run or Start Process button on the panel. That way the executable can start when launched, but not take any action until the user directs it to do so. Look at State Machine examples.

Lynn
0 Kudos
Message 3 of 6
(3,178 Views)
I think that an executable that starts automatically is the desired behavior. You should design your program so that it doesn't do anything until a "Start" button is clicked. The event structure in LabVIEW makes this task trivial.
0 Kudos
Message 4 of 6
(3,176 Views)
In your main VI used to create the application, check the VI properties
for the setting "run when opened", and check whether this is switched
off. If it is on, switch it off, an re-create the application.


JFL schreef:

> PROBLEM
> I have an executable created by Application Builder 8.  The application has a front panel with several controls, but starts up and runs immediately when you double click on the .exe without letting you set the controls first. Upon startup it asks for a file to log data to.  The only way to change the front panel controls is to cancel out of the file dialog (which --> error condition) or to give it some file name and then stop the application.
>  
> WANTED
> Is there any way to open the executable without having it start to run, or is there a switch in Application Builder so the executable just opens to its front panel and does not run?  I would then be able to start it after setting the controls by selecting RUN from the OPERATE pulldown.
>  
>  

0 Kudos
Message 5 of 6
(3,147 Views)
In your main VI used to create the application, check the VI properties
for the setting "run when opened", and check whether this is switched
off. If it is on, switch it off, an re-create the application.


JFL schreef:

> PROBLEM
> I have an executable created by Application Builder 8.  The application has a front panel with several controls, but starts up and runs immediately when you double click on the .exe without letting you set the controls first. Upon startup it asks for a file to log data to.  The only way to change the front panel controls is to cancel out of the file dialog (which --> error condition) or to give it some file name and then stop the application.
>  
> WANTED
> Is there any way to open the executable without having it start to run, or is there a switch in Application Builder so the executable just opens to its front panel and does not run?  I would then be able to start it after setting the controls by selecting RUN from the OPERATE pulldown.
>  
>  

0 Kudos
Message 6 of 6
(3,147 Views)