LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Remove rows of empty spaces from a string.

How do you remove rows of empty spaces from a long string. 

0 Kudos
Message 1 of 12
(3,042 Views)

I'm using a case in a for-loop and on my loop there's a array going out when I auto index the loop. It gives me the correct output but there a problem, there are 2 rows white spaces between them and I think they are called line feed. How can I remove these line feed for all the cases that are being processed out?

0 Kudos
Message 2 of 12
(3,013 Views)

You could use regular expressions:

Example_VI.png

If this is not what you are loooking for, please post your data not a picture.


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 3 of 12
(3,009 Views)

These are my VIs.

0 Kudos
Message 4 of 12
(3,002 Views)

More Sub-VIs

Download All
0 Kudos
Message 5 of 12
(3,001 Views)

Is this possible to be done?

0 Kudos
Message 6 of 12
(2,985 Views)

Patience, it is possible.

Example_VI.png

 

I strongly recommend that you look at this board as a lot of your code can be simplified using regular expressions.


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
Message 7 of 12
(2,981 Views)

Hey .aCe.,

 

Thanks for the help but I tried your code but It's still not working for me.

I'm still getting spaces between my codes.

 

Alan. (:

Download All
0 Kudos
Message 8 of 12
(2,947 Views)

Ace's solution should have worked for you unless if those "spaces" are some special characters and not white-space. I was about to ask if you could use the attached vi to clean out all white space, but not sure if that's going to work either.  Perhaps you could copy your string input in some text file and post it here?

 

-DP

untitled.png

--------------------------------------------------------

New Controls & Indicators made using vector graphics & animations? Click below for Pebbles UI


0 Kudos
Message 9 of 12
(2,931 Views)

Here is the attached Input.

0 Kudos
Message 10 of 12
(2,915 Views)