LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

delete duplicate string sub-section

Solved!
Go to solution

Hi, I was wandering if anyone had the best way to search a string and delete repeated sub sections.

 

For examples the input string may look like:

 

T2, T2, T3, T6

 

but I want to delete one of the repeated T2 so the ouput would be:

 

T2, T3, T6

 

Note that the input string may be of any length and a multiple of 4. I have gone through all the string functions and can find nothing to match what I require. I have tried using 'String subset' in  a for loop wired to an output array.

 

Any help in right direction would be appreciated!

0 Kudos
Message 1 of 6
(3,239 Views)
Solution
Accepted by topic author TanWal

Here is a handy dandy little tool that does just this.  The strings must be comma delimited.  it is in LV2009.  If you don't have it, save the file and submit it to the Downconvert VI Request thread.

 

 

- tbob

Inventor of the WORM Global
Message 2 of 6
(3,225 Views)

That does exactly what I want 🙂

 

Just need to downconvert to 6.2

0 Kudos
Message 3 of 6
(3,216 Views)

Going from 2009 to 6.2 is a lot of work.  2009 - 8.6 - 8.2 - 8.0 - 7.1 - 7.0 - 6.2.  Six steps.  Whew.  If you can't get it downconverted, I can post a picture.

 

- tbob

Inventor of the WORM Global
0 Kudos
Message 4 of 6
(3,183 Views)

Yes, way too much work for a relatively small VI.

 

Here is the screenshot.

 

 

 

EDIT:  Smercurio already converted it to LV 6.1 here.

Message Edited by Ravens Fan on 06-08-2010 01:18 PM
0 Kudos
Message 5 of 6
(3,176 Views)
I am just going to recreate, wont take too long
0 Kudos
Message 6 of 6
(3,154 Views)