LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Question about array subset?

I'm using array subset, starting at index zero, with a length of 6.
 
I wire that up to a chart, and I get 9 digital displays? 
 
 
0 Kudos
Message 1 of 9
(3,617 Views)
This is expected because, by default, the output of the Array To Cluster function is set to 9 elements. Right-click on the function >> Cluster size... to change the number of elements in the cluster to 6 or even better : remove this function.
0 Kudos
Message 2 of 9
(3,611 Views)
If I remove the array to cluster, The graph only has 1 element. How would i remove it?
0 Kudos
Message 3 of 9
(3,610 Views)
Hi Vr6,

when I remove the "array to cluster" I get the number of points set in the subarray function...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 9
(3,600 Views)

He has multiple channels that need to plotted separately.

Right click on the Array to Cluster and choose Cluster Size. Set the size equal to the length input you wired to the array subset.

0 Kudos
Message 5 of 9
(3,587 Views)
This VI look familiar dennis? :0)
0 Kudos
Message 6 of 9
(3,581 Views)
Deja vu.Smiley Very Happy
0 Kudos
Message 7 of 9
(3,578 Views)
Yes, you need to adjust the cluster size.
 
So, you have 6 temps and 5 pressures and you are not interested in element #6 at all. Is this correct? Seems inconsistent sice the pressure chart is setup for 7 traces.
 
In addition, it seems quite silly to use "array subset" to extract a single element array (speed, axial). and display it in a single element array indicator. Use a plain numeric indicator and use index array instead!
0 Kudos
Message 8 of 9
(3,564 Views)

If you need to split an array into multiple ranges as clusters and elements as done here, it is often easier to just typecast it into the desired structure and then use unbundle to get the various elements.

Here's a quick example on how you would do that.

Make sure to keep the elements of the various clusters in the desired order.

Message Edited by altenbach on 08-22-2007 09:38 AM

Download All
Message 9 of 9
(3,557 Views)