キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

Creating array

解決済み
解決策を見る

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

 

0 件の賞賛
メッセージ1/5
3,880件の閲覧回数

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 件の賞賛
メッセージ2/5
3,863件の閲覧回数

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 件の賞賛
メッセージ3/5
3,860件の閲覧回数
解決策
受理者 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 件の賞賛
メッセージ4/5
3,856件の閲覧回数

@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 件の賞賛
メッセージ5/5
3,846件の閲覧回数