10-29-2006 09:10 AM
10-29-2006 11:31 AM - edited 10-29-2006 11:31 AM
Just feed it into a FOR loop. It will autoindex and at each iteration you'll get one row until all rows are processed.
venurg@gmail.com wrote:
I have 2D array (m x n). I want to read each row ...
venurg@gmail.com wrote:
...and extract row elements. Then I need to compare these with previous row elements. Can anyone please guide me ?
Do you want to compare each row with the previous row or do you want to compare element by element. What kind of comparison?
For example, do you want to know...
To get you started, I am attaching a small example (LabVIEW 7.0) that tells which rows are the same as the previous row.

Message Edited by altenbach on 10-29-2006 09:32 AM
10-29-2006 09:10 PM
07-03-2007 02:58 PM
venurg@gmail.com wrote:
Thanks a ton for the advice Altenbach,
I have few columns, each having a meaning. In the first column I have G
code which commands tool motion. In next columns I have X, Y and Z
co-ordinate commands.
I have to access G code in each row and then see what was there in the
previous row. Also calculate the tool motion based on X,Y and Z values
from present and previous row.
I hope I was clear enough in explaining my problem.
Please advise.
THank you
Venu