LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating array

Solved!
Go to solution

How to make array as shown in figure? In pairs of X and Y.

 

0 Kudos
Message 1 of 5
(2,890 Views)

Hi SSG,

 

basic LabVIEW knowledge:

1. Create a cluster, containing 2 elements named X and Y

2. Place that cluster in an array

 

Which of these two steps is a problem to you?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(2,873 Views)

If you want to build the cluster from two 1D arrays of X and Y values, wire the arrays in to a For loop, build a cluster from the elements then output the cluster from the loop.  Ensure that indexing is turned on for both inputs and the output tunnel mode is also set to indexing (right-click on the tunnel to check or set the mode).

 

Andy

0 Kudos
Message 3 of 5
(2,870 Views)
Solution
Accepted by topic author SSG0484

Hi Psy,

 

or just use Index&BundleClusterArray.

No need for a FOR loop…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 5
(2,866 Views)

@GerdW

 

That's a very good point.  A function I so rarely use that I'd forgotton it was there.  Thanks for the reminder!

 

Andy

0 Kudos
Message 5 of 5
(2,856 Views)