From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Boolean toggle switch from main vi controlled in subvi

I have a main vi with multiple subvis.  One subvi is used as a display for a monitor showing all necessary indicators for the test subject and test conductor.  I would like to have control over a main vi boolean toggle switch from within the display subvi since the subvi will be what the subject and conductor sees on the monitor.  Any idea how to accomplish this?  Thanks. 

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

You will need to pass a reference from the main vi into the sub vi.  There is a few links to get you started.

 

http://digital.ni.com/public.nsf/allkb/0F4EA104660C0AF38625726F0069B27E

 

http://www.ni.com/example/28769/en/



-Matt
0 Kudos
Message 2 of 2
(2,753 Views)