LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Unclear on how the OpenG Index Array works with a 2D Arrray

Solved!
Go to solution

Hello,

 

     I do not understand how to use the OpenG undex Array with a 2D array input. I have attached the contest help window, The help says that

 

 

                                                                              "For 2D arrays, wire both the indices 0 and indices 1 inputs to specify the desired elements". 

 

   So what does that really mean? I have wired the vi as requested and the vi always puts out a 1D array. So are the two array index inputs rows and columns or what?

Regards,


Kaspar
0 Kudos
Message 1 of 4
(3,382 Views)

What exactly are you trying to do with this VI?

 

The OpenG Index Array accepts arrays of indicies and returns the elements at those indicies.  If you did into the VI, you will find a FOR loop with an Index Array inside.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 4
(3,374 Views)
Solution
Accepted by topic author Kaspar

I'm pretty sure you send in your array of row indices and array of column indices and get out your 1-D array of elements.

(i.e. row array [1,5,7] and column array [4,8,10] gives you a 1-D array of the elements at (1,4),(5,8),(7,10) )

Message 3 of 4
(3,365 Views)
Solution
Accepted by topic author Kaspar

Hello,

 

  Thanks that makes sense. I had this "pre-conceived" woring idea that that  output of the index was supposed to be a 2d array. After playing around wiht the

inputs and looking at the block diagram it makes sense.

Regards,


Kaspar
0 Kudos
Message 4 of 4
(3,322 Views)