LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to hav a RUN botton in the main window that start the program?

Hello!
 
I am developing an user interface and have made a program in labview that I am now testing on users. They all have problems understanding that the user interface is not running when they open the program...and ask if it is possible to place a run botton in the main VI instead of the white arrow in the menu-bar.... is this possible to implement(it is possible to stop the program from running, but why is it not possible to do the same thing with start running?)
 
-Mari
0 Kudos
Message 1 of 5
(2,727 Views)
It' actually quite easy. If you go to VI Properties>Execution, you can check the box that says "Run When Opened". There are many ways to implement a "Start" button on your fron panel. You can use an event structure with a value change event for the button or have a while loop before your main code that is stopped by the button.
0 Kudos
Message 2 of 5
(2,722 Views)

Hello Dennis.

I have tried your suggestions, but still I can`t get it to work. Even though I select VI Properties>Execution and "Run when opened",my program will not start to run when I open it.

-Mari

0 Kudos
Message 3 of 5
(2,716 Views)
Are you open it from the file explorer or open dialog, or from within a labview project?
(If you open it from within a LabVIEW project (LabVIEW 8.0 only), it won't run automatically! :D).
 
How long does your program run? Maybe it runs immedately and finishes in an instant?

Message Edited by altenbach on 07-08-2006 11:03 AM

Message 4 of 5
(2,714 Views)

Hello Altenbach!

Yes I am using labview 8.0 and project(where all my VIs, libraries and shared variables are).

-Mari

0 Kudos
Message 5 of 5
(2,697 Views)