LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

pass reference to 2D array with multiple rows -> subvi - sees only 1 row of many rows

Solved!
Go to solution
What am I doing wrong?
0 Kudos
Message 1 of 10
(3,734 Views)

Hi MrNatural,

can you show a picture or your vi?

 

Mike

Message Edited by MikeS81 on 02-11-2009 08:08 PM
0 Kudos
Message 2 of 10
(3,733 Views)

If you are doing any array indexing, are you sure you didnt accidentally select 'first row' instead of 'all rows' or something similar?
Or does the array go into a 'For' loop at any point? Because then it will autoindex as well.

 

Could you please post an image or a VI so I can see whats going on.

 

 

Cory K
0 Kudos
Message 3 of 10
(3,714 Views)
The attached vi and subvi show the problem.  The array is 5 rows by 3 columns yet the reference's number of rows property is one/uno/un/ichi/ein/1
0 Kudos
Message 4 of 10
(3,701 Views)
This time I hope to upload the zip file I intended to upload last time.
0 Kudos
Message 5 of 10
(3,698 Views)
The "Number of Rows" refers to the number of visible rows. This is exactly what it says for the documentation on that property (did you read it?). The Array Size property will tell you how many rows the array actually contains.
0 Kudos
Message 6 of 10
(3,695 Views)

I kind of guessed that but:

  Can't get array size of the reference and none of the properties seems to be useful for that purpose

 

0 Kudos
Message 7 of 10
(3,692 Views)
Solution
Accepted by topic author MrNatural
Sure there is. The Value property. Feed that into Array Size. The output of Array Size will be an array - one element for each dimension of your array.
0 Kudos
Message 8 of 10
(3,686 Views)
Thank you.  It works but, let me say, the solution sure is a typically fussy way to get a simple answer.
0 Kudos
Message 9 of 10
(3,679 Views)
True, it would be convenient in this case (and possibly others) to have Array Size as a property. I would suggest submitting this the Product Suggestion Center.
0 Kudos
Message 10 of 10
(3,667 Views)