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: 

How to pass parameters to the VI that is invoked by Run VI method in invoke node

Dear All,

I'm trying to use subpanel to display the front panel of sub VI to the main VI.

According to simple subpanel.vi I found in the example, I need to use Run VI method to run the sub VI.

The problem is, such method does NOT allow me to pass parameter to the subVI.

Can someone tell me how to solve the problem?

Thanks!
Jing Zhang
0 Kudos
Message 1 of 5
(2,793 Views)

Hi Jing,

      The attached .zip includes 3 examples - the 3rd example shows how to set a control-parameter prior to using the Run method.  That VI also shows the "Call by Reference node" - a little cleaner.  However, examples 1 and 2 show it's not necessary to use the Run method at all - personally, I prefer the second method.

Cheers!

"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
Message 2 of 5
(2,786 Views)
Very nice examples !
0 Kudos
Message 3 of 5
(2,777 Views)
0 Kudos
Message 4 of 5
(2,736 Views)
Glad to be helpful - thanks for the replies! Smiley Happy
"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
0 Kudos
Message 5 of 5
(2,732 Views)