LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to replace a single array element?

I would like to replace a single element of an array which is converted from a cluster and then store it back in the original cluster.

 

The element to replace is selected by the enum Angle.  The value to replace that element with is output from the sub-VI 'get raw angles.'

 

Will the Replace Array Subset work for replacing a single array element, leaving the rest untouched?

 

Here's what I've tried:

 

 

Untitled.jpg

 

 

 Thanks!

 

 

0 Kudos
Message 1 of 2
(2,424 Views)
You need to right-click the array to cluster function and choose Cluster Size.  Set it to 31, otherwise the compiler has no way to know how big to make the cluster.
Message 2 of 2
(2,419 Views)