ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using button to control subVI.

Can i use a button in my main front panel to break out of a while loop in the subVI during execution?
0 Kudos
Message 1 of 6
(3,396 Views)
The attatched VI solves your probelm
Message 2 of 6
(3,396 Views)
Thank you very much, Chris.
May i ask u if there is anyway to disable the button first until certain execution is executed, before releasing it to the user?
Im actually working on a project that manipulate data across gpib. If the user press the button to early, certain data will not be received.
0 Kudos
Message 3 of 6
(3,396 Views)
You can disable or hide the button using a Property node, and than activate or show after a certain execution.
0 Kudos
Message 4 of 6
(3,396 Views)
How is it done? Sorry to trouble you.Im pretty new in this.
Can you show me a sample prog?
thanks again.
0 Kudos
Message 5 of 6
(3,396 Views)
Hi lihui,

to make a property node you have to right click on the control in the
diagramm an then go Create --> property Node. To select a property you
have to right click on the newly created property and select property
--> visible, since visible is the desired property of the control you
want.

The attatched VI should help you to understand the functionality.

Greets Chris
0 Kudos
Message 6 of 6
(3,396 Views)