LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how do I put two strings in one "string dialog box"

example:

-----------------------------
testing connection.....Pass
testing speed..........Pass
testing motors.........Failed


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

I send a string to a device and receive a string from this device.
it is easy to print the string in a dialog box. but the problem is that the next string I get from the device overwrites the previous string.

how can I put all incoming strings under oneanother?
0 Kudos
Message 1 of 4
(2,549 Views)
use the concatenate strings function

have the previous value be the top substring,
a carriage return/enter character be the lowe substring
the new read value be the next lower substring
0 Kudos
Message 2 of 4
(2,540 Views)
If you are using a while loop you can put a shift register inside, what else you need is a concatenated string input which will accept your string in the first input and the EOL char in the second.

If you have a subvi, connect the string to the subvi's input and take the concatenated string at the output

Take a vi in 6.1 as an example
----------------------------------------------------------------------------------------------
There are 10 kind of persons. Those who understand binaries and the others.
0 Kudos
Message 3 of 4
(2,538 Views)
nice!! that worked tnx
0 Kudos
Message 4 of 4
(2,521 Views)