LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

remove index from arrays in cluster

Labview forum,

I have a cluster which contains both array and non-array elements.
Each array should be the same length.
I would like a function which removes a specified index (or index list) from each array in the cluster but leaves the non-array cluster elements untouched.

Attached I have attempted to write this function as generic function without prior knowledge of the number of arrays within the cluster.
I have tried to use references but encountered a problem where I cannot access the data of the arrays inside the cluster.

Any help?

Regards,
Jamie
Using Labview version 8.0
0 Kudos
Message 1 of 5
(3,022 Views)
Hi Jamie,

in the "cluster & variants" palette you will find functins to convert the variant data given by the value-property node back to "nice" array data...

One more tip: Give unique names to those arrays.
This way you can also (easily) decide which representation to use for the array - you need this information in the variant conversion process!

Message Edited by GerdW on 09-24-2007 09:59 AM

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(3,012 Views)
Hi GerdW,
 
Can ypu please back-save the VI for 7.1 ?
- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 3 of 5
(3,003 Views)
Hi Partha,

here it comes. I just added the "variant to data" to the original vi...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 5
(2,996 Views)
Thank you, GerdW.
- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 5 of 5
(2,980 Views)