ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I read one element from a 2D array

Hi. I have a series of images, each saved as a 2d array in txt files . 

They have 525x525 elements.

Currently i have written a sub-vi that integrates all of the numbers for 2D array

However, now i would like to read the value of

a)1 element from each 2d array

b) And  in the future, a sub-set of elements (eg 10x10 array starting at (250,300)

I have up to 400 arrays at a a time. Any suggestions? Thanks

Andy


0 Kudos
Message 1 of 2
(3,018 Views)
The "Index Array" function under "Arrays" on the diagram palettes allows you to supply both row and column indices, returning a single element (using only one or the other returns a whole row or column) and the and "Array subset" can be used to extract subportions of a larger 2D array.
 
P.M.

Message Edited by LV_Pro on 10-04-2005 11:00 AM

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 2 of 2
(3,015 Views)