Dynamic Signal Acquisition

cancel
Showing results for 
Search instead for 
Did you mean: 

implement a run/stop command (button) on a stand alone application

I use labview for a project I work on, as a result I am no expert; after playing around for a couple of days I managed to bult the program I need; I have a problem though, I want to put in the program a button that starts/stops the program when I save it as a stand alone application; when I do it now it keeps running all the time and crashes the pc! is it possible to add a run/stop command on the existing progam? how?
Thanks a lot,
Dimitris
0 Kudos
Message 1 of 3
(8,576 Views)
Hello Geophysicist,

There are various ways to add a start or a stop button in a LabVIEW program. Here are some of the options:

1) If your program is running continuously, then you probably are using some loop. To terminate a loop, the best and easiest way is to add a "Stop" button found in "buttons & switches" function palette of the front panel.
2) To start a program after pressing a key, among various options you can either use sequence structure, or one button dialog, or event structure. To use these options you can either use LabVIEW help or LabVIEW Example Finder also found in help or search on http://www.ni.com/support

I am attaching a snapshot of the two basic solutions that you can use to add a start and a stop option in your program.


I hope it helps,
Rajiv
Message 2 of 3
(8,576 Views)
Hi Rajiv,
thank you very much for your comments/answer.
I'll try what you said and I am sure it will work.
Thanks again,
Dimitris
0 Kudos
Message 3 of 3
(8,576 Views)