取消
显示结果 
搜索替代 
您的意思是: 

Index array question

已解决!
转到解答

Hi everyone,

 

I know that I can use a reshape array to convert a 2D to 1D.

But I'm curious to knew how come when I wire a 2D array into an index array and there's no constant for the index inputs, the output comes out as a 1D array?

How does it work in this case? could someone please explain this to me?

 

0 项奖励
1 条消息(共 3 条)
2,885 次查看

Hi LHX,

 

IndexArray defaults to index the first row of a 2D-array as can be seen by it's non-filled 2nd index input:

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 项奖励
2 条消息(共 3 条)
2,880 次查看
解答
接受人 LHX

Index Array functions always returns the element or subarray of n-dimension array at index. By default, if you do not wire any index input terminals, the first subarray indexes row 0, the second subarray indexes row 1, and so on.

Nghtcwrlr

---------------------------------------------------------------------------------------------
*************************************
---------------------------------------------------------------------------------------------
0 项奖励
3 条消息(共 3 条)
2,878 次查看