LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Append to a string indicator

Hi there,
I have a normal application. i need to display the test status to
the user during test, and the new test status will append to the
next line of the same string indicator that i previously used.

Anyone know how to do that ?

I tried using a local variable of the string indicator , but whenever i write
a new
string into it, the previous string will be deleted. I need to see the previous

string as well.

Ex: Test 1 Pass
Test 2 Pass
:
:
keep on updating the test status
0 Kudos
Message 1 of 4
(3,367 Views)
Hi Antony

1 - Make sure the string indicator is a multiline string.
2 - Store the current displayed string in a shift register and on every loop pass the data from the input to the output of the
shift register.
3 - Use an invisable string local or a global to store the latest test state only.
4 - Inside your loop check if the latest test state, global or local, has changed.
5 - If the latest test state has changed, append the data to the data stored in the shift register and display in your multiline
string indicator.

I have brushed over a bit of detail but I hope it helps.

Tim S

Anthony Chew wrote:

> Hi there,
> I have a normal application. i need to display the test status to
> the user during test, and the new test status will append to the
> next lin
e of the same string indicator that i previously used.
>
> Anyone know how to do that ?
>
> I tried using a local variable of the string indicator , but whenever i write
> a new
> string into it, the previous string will be deleted. I need to see the previous
>
> string as well.
>
> Ex: Test 1 Pass
> Test 2 Pass
> :
> :
> keep on updating the test status
0 Kudos
Message 2 of 4
(3,367 Views)
Hi Antony

1 - Make sure the string indicator is a multiline string.
2 - Store the current displayed string in a shift register and on every loop pass the data from the input to the output of the
shift register.
3 - Use an invisable string local or a global to store the latest test state only.
4 - Inside your loop check if the latest test state, global or local, has changed.
5 - If the latest test state has changed, append the data to the data stored in the shift register and display in your multiline
string indicator.

I have brushed over a bit of detail but I hope it helps.

Tim S

Anthony Chew wrote:

> Hi there,
> I have a normal application. i need to display the test status to
> the user during test, and the new test status will append to the
> next lin
e of the same string indicator that i previously used.
>
> Anyone know how to do that ?
>
> I tried using a local variable of the string indicator , but whenever i write
> a new
> string into it, the previous string will be deleted. I need to see the previous
>
> string as well.
>
> Ex: Test 1 Pass
> Test 2 Pass
> :
> :
> keep on updating the test status
0 Kudos
Message 3 of 4
(3,367 Views)
Anthony Chew wrote:
>
> Hi there,
> I have a normal application. i need to display the test status to
> the user during test, and the new test status will append to the
> next line of the same string indicator that i previously used.
>
> Anyone know how to do that ?
>
> I tried using a local variable of the string indicator , but whenever i write
> a new
> string into it, the previous string will be deleted. I need to see the previous
>
> string as well.
>
> Ex: Test 1 Pass
> Test 2 Pass
> :
> :
> keep on updating the test status


Anthony,
have you tried using the local variable as the first input
to the 'Concatenate Strings' vi ?

Walter
0 Kudos
Message 4 of 4
(3,367 Views)