LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

multiple strings input to single string output

Solved!
Go to solution

Dear all,

 

 

this program is needed for my demo simulation purposes, I'm creating several string inputs to show into a single string output updating (input strings are shown in each line). i attached the picture below, put 2 output strings w/c both doesn't meet my desired result:

1.) 1st string output - replace the old string w/ new string. what i need is to maintain also the previous strings. the new string will go to the next line.

2.) 2nd string output - although i got all the strings i needed, it only appears right after the while loop terminates, so i did not see the string inputs updating.

 

i'm using LV 8.5.1., any help is appreciated... posting your correct code will be more appreciated.Smiley Very Happy

 

thanks in advance...

 

1.jpg

Ivel R. | CLAD
0 Kudos
Message 1 of 5
(5,453 Views)

here's my code for anyone to see the actual difference.

 

thanks,

Ivel R. | CLAD
0 Kudos
Message 2 of 5
(5,450 Views)
You need to store the string in a shift register.  On each iteration of the loop, concatenate the new string to the old string that is stored in the shift register.  Send it back to the shift register and to the string indicator.
Message 3 of 5
(5,442 Views)
Solution
Accepted by topic author ivelson
You could also use a Feeback Node. Note that you can use the Format Into String function to  create your lines.
Message 4 of 5
(5,437 Views)

to ravens fan & smercurio_fc,

 

 

hey, thanks for the answers. it is now working. my problem looks very very easy to all of you.

 

to smercurion_fc,

 

in addition to your code (thanks for posting the correct code), i just add another string input (line feed function) so my output will be in each line formation. i did'nt really know this "format to string" function before... thanks for your efforts.

 

 

Ivel R. | CLAD
0 Kudos
Message 5 of 5
(5,420 Views)