LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

space of string

Hello all...

I have an array of strings. In each string got 2 words there. These are separated with tabs. But now I want to get these words separeted in a string indicator. Is it possible?

with regard
Jaxx
0 Kudos
Message 1 of 5
(2,604 Views)
Hi
One of many ways to do that is attached.
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 2 of 5
(2,600 Views)
Hi lan F K,

Sorry for confusing you. What i mean is not seprate those words to different string control, but in one string indicator only.

Because when i read those "words" to a string indicator from my program, i found that "tab constant" useless while display in a string indicator. Some more, "words" i have is actually 16, so i need to do 15 "spaces" between them.

Hope for help

with regard
Jaxx
0 Kudos
Message 3 of 5
(2,581 Views)
Use "search and replace string.vi" from the string palette.

  • Search String is "\t" (set the string diagram constant to display '\'-codes first)
  • Replace String is " ", a space character.
  • Wire a TRUE to the "replace all?" terminal on top.

    That should do it.
  • 0 Kudos
    Message 4 of 5
    (2,574 Views)
    Sorry for late reply... as Altenbach suggested...
    Realized as attached VI.

    Cheers!
    Ian F
    Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
    依恩与LabVIEW
    LVVILIB.blogspot.com
    0 Kudos
    Message 5 of 5
    (2,569 Views)