LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Pass data from top VI to XControl without any top VI code

I am trying to develop a clean help button XControl that uses One Button Dialog to show a string to user. I want multiple instances of this XControl to show different help strings. The help strings are currently saved in an .ini file, the developer specifies the INI key and string value manually. I would like the Init VI (or Facade VI) to get the INI key to read the string for its instance from the Top VI. It could be the XControl's Label or Caption. That could be done using a method in the Top VI to write the Label to the XControl's data cluster. But can it be done without any Top VI code? Can you reach the XControl ref from its Init VI?

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

Solved a while later - it is the Container state that holds the refnum to the XControl.

0 Kudos
Message 2 of 2
(985 Views)