LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I creat a control button that will allow the vi to run?

Instead of pressing the run button, I want to creat my own run button that will allow my vi to run.
Any idea?

Thank you
0 Kudos
Message 1 of 3
(2,644 Views)
First you need to set the VI to Run When Opened (VI Properties>Execution). Then you create a front panel Boolean. On the diagram what you need to do is have some sort of idle state where nothing is done until the Boolean is pressed. It could be a separate while loop that doesn't exit until the Boolean is pressed, an Event Structure, or as part of a state machine. Look at the shippings examples Queued Message Handler, New Event Handler, Using Buttons for Options to name just a few.
Message 2 of 3
(2,644 Views)
Hi,

Put the any Boolean button which you feel right or it is atleast in shape you want.
Right click this button -> Advanced -> Customize...
Then a new front panel will open. Here you can shape or modify the button. Save it & replace your original control with the modified one.

Hope this works.

Best Regards,
Nirmal Sharma
India
0 Kudos
Message 3 of 3
(2,644 Views)