LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Making my Start/Stop Buttons Work

In the attached VI, I want the sine wave generator to run when I hit the Start button and stop when I hit the Stop button.  A While loop--inside or out of the Event structure--doesn't seem to help.

Ideas?

(Edit for clarity.)

Message Edited by DJDDA on 10-02-2007 04:28 PM

0 Kudos
Message 1 of 8
(3,242 Views)
Something like this?
0 Kudos
Message 2 of 8
(3,234 Views)
duplicate friggin POST.... Keep your questions in the same thread!

Paul
0 Kudos
Message 3 of 8
(3,227 Views)
Wow, thanks.  (Fast reply, too.)

Would it be possible to make the Start button (visually) pop back out after being pressed, or is that complicated somehow?

Edit: Stradis: Sorry, I haven't been around here long.  I didn't know it was customary to put unrelated questions by the same member in one thread.

Message Edited by DJDDA on 10-02-2007 04:50 PM

0 Kudos
Message 4 of 8
(3,222 Views)
Change the latching for the booleans.  You won't be able to use your local variables, though.
0 Kudos
Message 5 of 8
(3,219 Views)
Okay, put it to "Switch Until Release" and it seemed to do the trick.  Thanks again.  Smiley Happy
0 Kudos
Message 6 of 8
(3,212 Views)
The Booleans just have to be moved inside the event structure. Start inside the Start event and Stop inside the Stop event. The indicators you have can be deleted.
0 Kudos
Message 7 of 8
(3,212 Views)
Oh, thank you, didn't think of that.
0 Kudos
Message 8 of 8
(3,207 Views)