LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Control Multiple VIs from a single VI

hello!

 

I have a project in which there are three VIs...main VI, VI NO.1 and VI No.2.Now the idea is to control VIs from the main VI like there could be buttons over there on the main VI.When I click the button no 1, it pops up the inactive VI No 1 and turn it on, when i press button 2, it turn on the VI NO2  and turns off the VI No 1.The whole idea is to control the start and stop of independent VI through main VI controls.How can I do that?

0 Kudos
Message 1 of 2
(2,577 Views)

The best way would be to run the other two VIs in parallel with the main VI.  Then you use queues or events to send commands to the other VIs.  You two subVIs just responds appropriately after reading the commands.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 2
(2,563 Views)