LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How come the output of the Array Subset VI is 2-D when I specify a 1-D subset?

1. I'm trying to strip off a row from a 2-D array so I can search for a match within that row. When I use Array Subset and specify one row as the subset (for example, Row Index=0, Row Length=1, Column Index=0, Column Length=(a variable, typically 255), the output is a 2-D array.

2. Do I have to use Reshape Array on the output of Array Subset to get the desired 1-D array? The help popup says I have have to add m dimension sizes to have the output be an m-dimensional array. If I add a dimension size, I get a 2-D output. If I fall back to one dimension size and hardwire it to '1', I get a 1-D array wire type but apparently the array doesn't contain all the data in the row from the original 2-D array.

I'm using LV 5.1. What is the easiest way to strip off a row from a 2-D array in LV 5.1?

I appreciate any help you can provide.

Thanks,

Jeff Bledsoe
Jeffrey Bledsoe
Electrical Engineer
0 Kudos
Message 1 of 3
(2,577 Views)

@JeffreyP wrote:
What is the easiest way to strip off a row from a 2-D array in LV 5.1?

The easiest way to has always been just to use the "Index Array" function, choosing the indice of the row you wanted and with nothing wired to the column terminal (the lower one).

Edit: I'm assuming that by "strip off" you mean "access", not "strip out"/"remove".

Message Edited by Donald on 05-13-2005 02:03 PM

=====================================================
Fading out. " ... J. Arthur Rank on gong."
Message 2 of 3
(2,570 Views)


@Donald wrote:

@JeffreyP wrote:
What is the easiest way to strip off a row from a 2-D array in LV 5.1?

The easiest way to has always been just to use the "Index Array" function, choosing the indice of the row you wanted and with nothing wired to the column terminal (the lower one).

Edit: I'm assuming that by "strip off" you mean "access", not "strip out"/"remove".

Message Edited by Donald on 05-13-2005 02:03 PM



Thanks Donald. It worked after I disabled indexing for columns. Much better than what I was trying before.

Jeff
Jeffrey Bledsoe
Electrical Engineer
0 Kudos
Message 3 of 3
(2,559 Views)