LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

write to screen without delete old data

How to write to screen (indicator) in new lane ander old one.
0 Kudos
Message 1 of 12
(4,014 Views)
could you please be a bit more descriptive?  Are you talking about a string indicator where you want to keep appending new data on new lines?  Tables, list boxes.... What?

Paul
0 Kudos
Message 2 of 12
(4,003 Views)

i use string indicator.

But if you can answer about another indicators i say tnx

Message Edited by Vaj on 09-19-2007 10:24 AM

0 Kudos
Message 3 of 12
(3,988 Views)
Rt click o the String indicator & check the "Update Value while Typing" option from the short-cut menu.
- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 4 of 12
(3,983 Views)

I think what Vaj really needs is a shift register and the concantanate string function.

Message Edited by Dennis Knutson on 09-19-2007 09:54 AM

0 Kudos
Message 5 of 12
(3,977 Views)
If you say Sir, there is NO appeal ! Smiley Wink
- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 6 of 12
(3,970 Views)
i mean , that message receive and print. Then come second message and print on the same string indicator but under first message and next message under message before....
0 Kudos
Message 7 of 12
(3,916 Views)
That is what is done exactly by the VI posted by Dennis. Just remove the VISA Read.vi from it & replace it with a message dialog VI, it ll print as per your requirement. See the concatenate strings function under the String pallette for more usage of it. Also those various string constants...
- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 8 of 12
(3,901 Views)

The vi posted by Denis not do what i mean.

I atach pic of what i dead.

I have another 2 questions:

1)I need to write up to 'N' lines (messages) in win ,  and like buffer win after 'N' delete first line and add next message in the end/

2) In adition i must to use abutton (or in the end of running) to clear a string window from all messages.

0 Kudos
Message 9 of 12
(3,789 Views)
Dennis' code does exactly what you mean and is a better architecture then what you have shown.  Have you tried his code?
 
Your method will do what you want, somewhat.  The problem is when you go to expand your code with other events.  Write now there is no timeout on the event structure, so you loop will effectively hang on waiting for the Load button to be pressed.  Now if you add another event, you will wind up appending a default string and a CRLF to the end of your string which will just add a blank line.  So your concatenation should be move inside your event case, and it is better to wire the value of the string through a shift register.  Then if you have a timeout case, then just wire it through and the data will remain unchanged.
 
For #2, add another event for your Clear button that just puts an empty string into the tunnel going out of the event case.
 
For #1, you may want to add another wire that keeps track of the number of strings written.  Any time the the number is greater than the desired number, then you can put other string functions in a case statement (inside that event) that will strip out the earlier lines and return the remaining.  Then you can readjust the number of strings written wire to account for the strings deleted.  It can be reset to 0 for the event case mentioned above.  Remember to wire that one through the loop and maintain its value using the shift register as well.
 
I think your use of an event structure is a good idea.  Pay attention to Dennis' comments, there is a reason he got a gold shield next to his name.  Smiley Wink  You say his comments aren't what you want, but yet post code that would function very similarly to what he posted.
0 Kudos
Message 10 of 12
(3,773 Views)