LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Pass parameters or arguments to subvi inside subpanel from outside and return?

Hi Any idea how to pass the arguments or parameters to and from Subvi inside the subpanel?
And any example would be appreciated.
regards,.
Clement
0 Kudos
Message 1 of 8
(5,650 Views)

Hi Clement

You could use Call By Reference instead of an invoke node to run your subpanel. Like this

regards

David

 

Message Edited by David Crawford on 01-04-2006 09:29 AM

Message Edited by David Crawford on 01-04-2006 09:33 AM

Message 2 of 8
(5,641 Views)
Oops!. I should have make myself clear which version I am using earlier!
Pls provide me  a version 7 one. Thanks
Sorry for the trouble.Smiley Wink
0 Kudos
Message 3 of 8
(5,616 Views)

Hi Clement

Here are the VIs in V7.0 from V8.0. There were a few warnings during the down conversion so I hope they work out for you.

David

Download All
0 Kudos
Message 4 of 8
(5,614 Views)
Hi. Thanks But there's one thing I still do not understand. the error says Class conflict and I cannot figure it out!
See my attached.
 
0 Kudos
Message 5 of 8
(5,603 Views)
OOps! Sorry about my attached. Seems like it needs my other files. Pls forget my attachment. Here Pls take a look at my pic instead.
0 Kudos
Message 6 of 8
(5,601 Views)
OOps! Press submit post button accidently. See the pic
0 Kudos
Message 7 of 8
(5,601 Views)
Hi Clement
 
You are running into typedef clashes. Reorganise your code to create the VI ref for the subpanel in the case statement for the ring control something like this.
 
 
Dynamic Load Example.vi shipped with labview is a good to see how the call by reference works.
 
David

Message Edited by David Crawford on 01-05-2006 04:32 AM

Message Edited by David Crawford on 01-05-2006 04:42 AM

0 Kudos
Message 8 of 8
(5,595 Views)