LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to create run and stop button on the control pannel instead fo using the ones on the tool bar?

I have created a program which runs to all my specifications. The final thing I'd like to do is to be able to run it from the contrl panel.
Can i create a run and stop button on the control panel or am i limited to using the little white arrow button on the toolbar?
0 Kudos
Message 1 of 6
(2,993 Views)
When you say Control Panel are you referring to the Front Panel of your VI?  If so then yes you can have the program start automatically upon being opened and close with a button push on the Front Panel.  Let me know if this is what you were looking for.
0 Kudos
Message 2 of 6
(2,990 Views)
You can create buttons which the effect of causing the user to perceive that the program is not running, but it will actually be running in an idle mode.

Typically a state machine architecture is useful for this.

The entire program is inside a while loop. The program is configured to run when opened. A case structure or an event structure waits until the Run button is pressed. Then the code switches cases and runs your main code. The main code or the event structure also looks for the Stop button to be pressed. When it occurs, the shutdown portion of the code executes (close files, reset DAQ hardware to known states, ...) and then the program exits.

Lynn
0 Kudos
Message 3 of 6
(2,988 Views)
I'm trying to run my V.I. by the use of a boolean start and stop button.  The version of LabVIEW that i'm using is 6i so it's probably more difficult than recent versions.
0 Kudos
Message 4 of 6
(2,985 Views)
If thats true than the only thing i need to figure out how to do is to run the program upon opening.
0 Kudos
Message 5 of 6
(2,982 Views)
Open up the VI Properties and in the "Execution" section set "Run When Opened" to true. Then, when you open your VI from disk it will run after it opens.
0 Kudos
Message 6 of 6
(2,973 Views)