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: 

Delete duplicates from 2D array

Solved!
Go to solution

Hi,

 

the output from a test is stored in a 2D array. It's actually the text dump from a hyperterminal session that is converted to a 2D array.

 

I've attached a vi with some sample data and the expected output from this data.

 

I just can't get it to work and I'm struggling to get to grips with what I need to do to make it work.

 

The actual raw data looks like this:

 

  Checking flash chip.............................PASSED!
  Checking processor status.......................PASSED!
   - Software version:                            0x0065
   - Hardware version:                            0x0104
  Checking ID chip................................PASSED!
   - meter ID:                                 0x3400001594AA2801
  Checking the ADC and accelerometers.............PASSED!
   - Self test result.............................0x003F
  Checking real time clock........................PASSED!
  Move magnet into place and press <SPACE>...
  Checking reed switch............................PASSED!
  Are all LCD segments and all LEDs off? (Y/N)....PASSED!
  Are all three LEDs on? (Y/N)....................PASSED!
  Are LCD segments showing? (Y/N).................PASSED!
  Enter case number:                              5002

 

For each unit tested I'm extracting the case number, meter ID, software version, hardware version and self test result.

 

But if a unit is tested a number of times, the same meter ID will be recorded but it's only the last instance of the test that I need

 

I need to remove the earlier instances of the data and the duplicates are not necessarily adjacent in the array.

 

 

LabVIEW 8.6

0 Kudos
Message 1 of 3
(3,588 Views)
Solution
Accepted by topic author sebster

Hi sebster,

 

try this:

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 3
(3,580 Views)

Perfect, Thanks GerdW.

 

 

Sebster.

0 Kudos
Message 3 of 3
(3,572 Views)