08-05-2021 07:33 AM
Hey,
I have a simple task, but I’m Surprised on how tedious it seems to accomplish.
In a XControl i call some Vis that require User interaction.
I pass some Variables in and out and up to now I displayed the SubVis as Popup
In a next step I wanted to display these SubVIs in a SubPanel and came across some strange habits
I can’t believe any of these Points to be True so how is the Correct way to achieve this in clean Code?
08-05-2021 07:41 AM
Neither of those points are true, but I don't know what you are doing wrong.
08-05-2021 09:38 AM
so...
How do i get a Reference Wire to a SubPanel?
and How do I pass Variables in and out a VI thats loaded in a SubPanel. I only found VI Reference by Path to VI and then Global Variables
08-06-2021 06:48 AM
@PaulPascher wrote:
so...
How do i get a Reference Wire to a SubPanel?
Right click on the SubPanel (on the Front Panel) and "Create>>Reference". Place teh reference on teh block diagram.
and How do I pass Variables in and out a VI thats loaded in a SubPanel. I only found VI Reference by Path to VI and then Global Variables
SubPanels are a Front Panel thing. Any Front Panel can be used; they have nothing to do with how the SubVI is called/used. I would guess (from others who have similar confusion) that you are thinking you have to do something complicated, like using "Open VI reference" in some way. Your issues are likely in that, rather than in the SubPanel, so you might explain what you are doing there.