06-13-2014 07:36 AM - edited 06-13-2014 07:41 AM
Hi ,
is there a way to replace the values (string , boolean) of a 1D array Cluster with value of 1D boolean array without using loop ?
Regards
Simone
06-13-2014 07:56 AM
Nope. Have fun with the FOR loop.
06-13-2014 08:26 AM
What is wrong about using a loop? Your question is analogous to asking: "Can I drive a car without wheels?"
06-13-2014 09:00 AM
The problem is about speed and cpu.... using "Replace Array Subset" could be the right solution but I do not know how....
06-13-2014 09:33 AM
Replace Array Subset requires that the array elements are type compatible with the elements that you want to replace. That seems not the case in your example.
And the For Loop is anything but slow. How many billion elements do you expect your array to have to worry about performance of the for loop? With the type definition of your example even a ready made LabVIEW function would have to do internally a for loop too, since the boolean data inside the original array can not be in a continous memory area.
Maybe if you show us what you try to do with the for loop we can understand better what your concerns are. As it is from the front panel image alone it is really hard to understand what your imagined problem might be.