LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

problem getting bundles to sub vis

Hi,

I would appreciate help telling me how to get data which I set on the main
front panel to pass on to a sub vi. I have a number of inputs on my front
panel, which is surrounded by a while loop. They have to go to a sub vi outside
of the while loop, which takes the data to set up a control. The problem
is that I cannot get the bundled data(a thick pink wire) to go out of the
while loop. I have teh subvi having a cluster which has all the data indicators,
and I wired the cluster to a terminal, so that teh wire on my main vi will
conect to the terminal on the subvi. But, on the main vi, I get the wire
to be good to the point at which it hits the bordr of the while loop, then
it is broken beyond. ANy help would be most a
ppreciated. Thanks

JMH
0 Kudos
Message 1 of 2
(2,610 Views)
JMH wrote:

> Hi,
>
> I would appreciate help telling me how to get data which I set on the main
> front panel to pass on to a sub vi. I have a number of inputs on my front
> panel, which is surrounded by a while loop. They have to go to a sub vi outside
> of the while loop, which takes the data to set up a control. The problem
> is that I cannot get the bundled data(a thick pink wire) to go out of the
> while loop. I have teh subvi having a cluster which has all the data indicators,
> and I wired the cluster to a terminal, so that teh wire on my main vi will
> conect to the terminal on the subvi. But, on the main vi, I get the wire
> to be good to the point at which it hits the bordr of the while loop, then
> it is broken beyond. ANy help would be most appreciated.
Thanks
>
> JMH

This could be one of several problems
1) The while loop maybe trying to build an array of the output.
Right click on the tunnel (black block on the edge of while loop) and
see if indexing is enabled. If it is you are building an array of clusters.

2) The datatype of the while loop and the input to the subVi dont match.
The easiest way to fix this is create and indicator from the Control on
the main VI and then copy it over to the SubVi. Make sure you change
the cluster on the SubVi to a *Control*.

3) You need to be aware that the data will not pass to the subvi until
the while loop finishes. This may be what you want, I cant say since I dont
know what you are trying to do. This will not cause a bad wire but will
cause problems if you really want the SubVI to run on Every Loop.

It sounds like #2 is your problem.

Let me know if you need more help
Kevin Kent
0 Kudos
Message 2 of 2
(2,610 Views)