LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to ablate the empty line of a string?

Hi everyone!

I am creating a string control in LabVIEW 7.0.
I would like to know how to ablate the empty line of a string?

For example, I have three string input controls, they are grouped together in every other line.
The output indicator will show:

String1 data
String2 data
String3 data

However, when one of the string controls is empty, the indicator show as follow:(e.g. String2 is nothing)

String1 data

String3 data

My ideal string output is that all data are reformed the order automatically as follow:

String1 data
String3 data


What should I do???
0 Kudos
Message 1 of 5
(2,870 Views)
See attached VI using LV 7.1.
Hope that helps. 🙂

Neil

Message Edited by NeilR on 05-18-2005 06:21 AM

0 Kudos
Message 2 of 5
(2,858 Views)
Hi NeilR!
Thank you for your reply!

I can't open your solution file, because I am using the LabVIEW 7.0
Would you plz help me again with a 7.0 file or a jpg file?

Thank you very much.
0 Kudos
Message 3 of 5
(2,838 Views)
Try this 🙂
0 Kudos
Message 4 of 5
(2,831 Views)
Hi NeilR!
Thank you for your reply!

Your solution is excellent!
How about if I do not use the "For Loop" but a "While Loop"?
How to improve it into a While Loop type?

Thank you very much!
0 Kudos
Message 5 of 5
(2,810 Views)