LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

a question about cluster

Hi all,

I have a question about the usage of cluster. I create a cluaster
which includes three indicators on the front panel, but I can't use
unbundle function on the diagram. If I change the indicator to control,
it works. I didn't find on the manual that the unbundle function only
accept cluster of control as input.

Thanks for your help!

Regards,

Tao
0 Kudos
Message 1 of 5
(2,805 Views)
This is because of the way dataflow programming works. It probably didn't
explicitly mention.

Labview has data sources (controls, inputs) and data sinks (indicators,
outputs). Unbundling accepts cluster as input and outputs the individual
pieces of data. Similarly bundling accepts individual pieces of data as
input and ouputs a cluster. So logically your cluster must be a control
(input) for unbundling, and an indicator (output) for bundling.

If I'm misunderstanding the question or oversimplifying the problem email me
or post again.

-joey

"tsong" wrote in message news:b11154$qmq$1@news.umbc.edu...
> Hi all,
>
> I have a question about the usage of cluster. I create a cluaster
> which includes three indicators on the front panel, but I can'
t use
> unbundle function on the diagram. If I change the indicator to control,
> it works. I didn't find on the manual that the unbundle function only
> accept cluster of control as input.
>
> Thanks for your help!
>
> Regards,
>
> Tao
>
>
>
0 Kudos
Message 2 of 5
(2,805 Views)
"tsong" wrote in message news:b11154$qmq$1@news.umbc.edu...
> Hi all,
>
> I have a question about the usage of cluster. I create a cluaster
> which includes three indicators on the front panel, but I can't use
> unbundle function on the diagram. If I change the indicator to control,
> it works. I didn't find on the manual that the unbundle function only
> accept cluster of control as input.

Yes I believe that is how it works. What you can do is make a local
variable and set it to read-from.
0 Kudos
Message 3 of 5
(2,805 Views)
Tao,
If you were trying to read from the indicator (i assume you are trying to read from it bcos you say you want to use unbundle), create a local variable for the indicator and use the unbundle function

Anand.
0 Kudos
Message 4 of 5
(2,805 Views)
> I have a question about the usage of cluster. I create a cluaster
> which includes three indicators on the front panel, but I can't use
> unbundle function on the diagram. If I change the indicator to control,
> it works. I didn't find on the manual that the unbundle function only
> accept cluster of control as input.
>

You already have several responses, but let me add one more.

The diagram is broken because you have a wire between a cluster
indicator terminal and a cluster unbundler. This wire has two data
sinks, and no data source. The diagram can't work until someone can
produce data for the wire.

One solution is to make the cluster be a control. This will make it a
data source, and it will also allow the user to enter data into it. If
you
do not want to allow user entry, then you can make a local variable
for the cluster and use it instead of the cluster terminal.

Greg McKaskle
0 Kudos
Message 5 of 5
(2,805 Views)