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,783 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,776 Views)
Very nice examples !
0 Kudos
Message 3 of 5
(2,767 Views)
0 Kudos
Message 4 of 5
(2,726 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,722 Views)