LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

calling other vi with the click of a button

Hi,

Is there any way to call a vi by click of a button in another vi? I am trying to call a vi which would pop up by clicking a button in another running vi. This would be cool isnt it....Any help>>>>>

Thanks
SAL
0 Kudos
Message 1 of 2
(2,382 Views)
This is pretty basic. In the subVI, Go to VI Properties and in Window Appearance, select customize and select Show Front Panel When Called and Close Afterwards if Originally Closed (or just click the Dialog radio button on the Appearance page). Then use an event structure to capture the Boolean value change event and put your subVI in that event. There is a shipping example called Dialog Box Demo that shows the old method of polling the Boolean and having the subVI in a case statement. some of the shipping examples for the event structure also demonstrate pop-up VIs. Look at one called New Event Handler.
0 Kudos
Message 2 of 2
(2,376 Views)