LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I need to keep the old data displayed in the string indicator on the front panel. I am using a serial read in a while loop and the previous data is written over with the new data.

I am trying to keep displayed data on a front panel string indicator. The old values are overwritten continuosly with the new values. Can anyone help me with this problem.
0 Kudos
Message 1 of 5
(5,015 Views)
Hi,

You must concatenate strings inside the loop.
Here is a picture of the solution...

Hope this helps,

Benoit
0 Kudos
Message 2 of 5
(5,015 Views)
Hi JBH,
If you need just the old value maybe you need to run the application only once and not loop it. But since you have a loop i understand that you are doing a continuous serial read. This will ofcourse update the indicator value. But there are ways you can retain your old value. You can either wire the indicator to the while loop border, enable indexing and obtain a array of strings which would include all your previous values. You can then use the array tools to access individual value.
The other option would be to use shift registers to retain values from previous iterations.
Hope this helps,
Pravin
0 Kudos
Message 3 of 5
(5,015 Views)
The quick 'n' dirty way to do this is to go to Operate/save current values as default after you input the initial values. Any time afterwards, even with the vi running, you can then hit "reset all values to default" and voila. Not elegant, but it works great...ive been using that technique for years .
Eric P. Nichols
P.O. Box 56235
North Pole, AK 99705
0 Kudos
Message 4 of 5
(5,015 Views)
This is a good solution but depending on how big your data sets are, what your baud rate and your rate of acquiry, your file could become quite large, quite fast.
0 Kudos
Message 5 of 5
(5,015 Views)