LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help with Reference from subVI to VI !!

hi people. i need to send values from a subVI to the mainVI. particularly, i have a boolean that changes according to X event, and I need to change an case structure according of its value. 
i have read some stuff from the web but all of them aims to the use of references, but from the main to the subVI. 

heeelpp

and thanks a lot ^^

0 Kudos
Message 1 of 3
(2,497 Views)

Go ahead and post what you've got. It is possible to:

  • grab a referance to the sub-vis panel -
  • return referances to its objects,
  • peek at the object labels to select just your desired control/indicator and
  • get a value from a property node from the controls referance BUT,......

 I'm guessing that there is an easier way to get what you want since your data structure seems a bit "inside out."  Not really a killer but, when you go to maintain the code you'll wish you had a cleaner solution. 


"Should be" isn't "Is" -Jay
0 Kudos
Message 2 of 3
(2,492 Views)

You should also look at the examples that ship with LabVIEW on how to use references. You can also take a look at this nugget: http://forums.ni.com/t5/LabVIEW/Nugget-Using-control-references/m-p/570756

0 Kudos
Message 3 of 3
(2,480 Views)