06-22-2012 10:43 PM
Hi,
How can I remove the row for second repeated data in my 2D array regardless of the 2D array size.
06-23-2012 01:59 AM
06-23-2012 07:59 AM - edited 06-23-2012 08:09 AM
Hi Altenbach,
As long as the first 2 column repeats, I will delete the second repeated row. The datatype is double. The repeated data is different at every run.
06-23-2012 08:20 AM
Use a shift register in a FOR loop to keep track of the n-1 row data.
06-23-2012 12:18 PM - edited 06-23-2012 12:19 PM
With a few simple strikes of the mouse, you could probably adapt this example (i.e. change the array of strings to an array of DBL and select key column #0). Let me know if you have problems.
(Do we really need to look at the second column, FOr you data it seems that looking at the first column might be sufficient.)
06-23-2012 12:25 PM - edited 06-23-2012 12:26 PM
Yes, I need to look at the second column this is just a portion of the array.
06-23-2012 01:04 PM
Can you attach a simple VI that contains the array of post #3 as a diagram constant?
The basic algorithm remians the same, but instead of a single column you would take the array subset of the first two columns, autoindex it the same, and compare the array of two elements with the previous (compare aggregates).
06-23-2012 01:30 PM - edited 06-23-2012 01:30 PM
Is it okay for me to post snippets? This is my first time creating a snippets.
06-23-2012 01:57 PM - edited 06-23-2012 01:57 PM
06-23-2012 02:22 PM