LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

remove array elements

Hi All,

connect to variant was a cluster of 3elemtents and yet, to my xy chart buffer, is a cluster of 2elements. How to connect them up?

 

Thanks & Regards,

Isa

0 Kudos
Message 1 of 8
(3,455 Views)

Hi Isa,

can you show a picture of your data, please? Can you also show the expected result?

 

Try to help.

Mike

0 Kudos
Message 2 of 8
(3,453 Views)

Sorry that i forgot to attach the picture. haha XD

 

Regards,

Isa

0 Kudos
Message 3 of 8
(3,450 Views)

Hi Isa,

which values are in your 3 elements cluster and how do you want to assign them to the 2 elements cluster? You can use a for loop to run through the array. Use a unbundle and a bundle function to build a 2 elements cluster as you need it.

 

Mike

0 Kudos
Message 4 of 8
(3,444 Views)

The elements are: 2 of my subvi in DBL and one in timestring. [3 elements cluster ]

when i assign them, in update graph 1, there will be 1subvi DBL and timestring [2 elements cluster]

How to i place my for loop? when i straight away values into the bundle and comes out a brown wire(cluster).

 

Regards

Isa

0 Kudos
Message 5 of 8
(3,436 Views)

Hi Isa,

i don't know how you come from your Cluster with 3 elements to variant and why you try to convert it back to array of Cluster of 3 elements. The attached picture shows how you can use the unbundle/bundle function.

 

Hope it helps.

Mike

Message 6 of 8
(3,428 Views)

Hi,

i would like to ask why does a for loop can do this job? by remove array elements.

 

Thanks & Regards,

Isa

0 Kudos
Message 7 of 8
(3,361 Views)

Hi Isa,

what do you mean? The for loop runs as often as elements in the array. If autoindexing is on, then you can directly use the single element.

I recommend to visit some of the free ni courses.

 

Mike

Message Edited by MikeS81 on 01-22-2009 08:16 AM
0 Kudos
Message 8 of 8
(3,353 Views)