01-20-2009 12:33 AM
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
01-20-2009 12:41 AM
Hi Isa,
can you show a picture of your data, please? Can you also show the expected result?
Try to help.
Mike
01-20-2009 12:44 AM
Sorry that i forgot to attach the picture. haha XD
Regards,
Isa
01-20-2009 12:48 AM
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
01-20-2009 01:02 AM
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
01-20-2009 01:11 AM
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
01-22-2009 12:21 AM
Hi,
i would like to ask why does a for loop can do this job? by remove array elements.
Thanks & Regards,
Isa
01-22-2009 01:16 AM - edited 01-22-2009 01:16 AM
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