LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating array

Solved!
Go to solution
Highlighted

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

 

0 Kudos
Message 1 of 5
(149 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
CLAD expired, using 2009SP1 + LV2011SP1 + LV2017 (+LV2018 sometimes) on Win7+cRIO
Kudos are welcome Smiley Wink

0 Kudos
Message 2 of 5
(132 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
(129 Views)
Solution
Accepted by topic author SSG0484
06-14-2019 02:38 AM

Hi Psy,

 

or just use Index&BundleClusterArray.

No need for a FOR loop…

Best regards,
GerdW
CLAD expired, using 2009SP1 + LV2011SP1 + LV2017 (+LV2018 sometimes) on Win7+cRIO
Kudos are welcome Smiley Wink

0 Kudos
Message 4 of 5
(125 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
(115 Views)