LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Set Variables to sub VI from main VI

Solved!
Go to solution

Made multiple attempts to configure sub VI to call Main VI but unable to configure user inputs to change settings. Need help setting up sub VI to call from Main VI that can vary with user inputs? Please refer to attach VI's, current VI calls sub VI but unable to change USER inputs or change variable. 

0 Kudos
Message 1 of 6
(113 Views)

I would look but I'm on LV21. Maybe save the VIs for previous versions of LabVIEW.

______________________________________________________________
Have a pleasant day and be sure to learn Python for success and prosperity.
Message 2 of 6
(91 Views)
Solution
Accepted by topic author Manny904

A sub should never call the main. If you want it free running (as now) you'll send information through Events, Queues or possibly a Global variable.

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 3 of 6
(45 Views)

What I would like to achieve is having an option to choose between infuse and withdraw to also change position of valve? how do I go about achieving this? 

0 Kudos
Message 4 of 6
(35 Views)

I figured it out by using case structure sequence as you mention. Thank you!!!

0 Kudos
Message 5 of 6
(15 Views)

@Manny904 wrote:

I figured it out by using case structure sequence as you mention. Thank you!!!


Nobody here mentioned any "case structure sequence". I don't even know what that means, but it is certainly not something to communicate between VIs. 😄

0 Kudos
Message 6 of 6
(11 Views)