LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I get to start my program only if I hit a START button?

Hi there,
 
My idea on improving my program is to install a START button and that the program will only run if i hit it.
 
Even if i click on the RUN button, there were still be no effect until i click the START button.
 
I would be very glad to receive ideas to go about this problem.
Thanks.
Regards,
Aidah
0 Kudos
Message 1 of 3
(2,717 Views)
 
If the program starts running, it will first enter wait loop containing your start button and a small wait statement. Pressing the start button will terminate the loop and proceed to the main code of your program.
 
That is the basic idea, expand as needed. 😉 (A more universal version would be a state machine where the start button will exit the pre-start wait state and enter the post-start state.)
0 Kudos
Message 2 of 3
(2,715 Views)

Hi there,

Thanks for the reply. I'll try it and hope to give good news.

Regards,
Aidah

0 Kudos
Message 3 of 3
(2,706 Views)