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,892 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,875 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,872 Views)
Solution
Accepted by 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,868 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,858 Views)