10-24-2013 03:49 AM - edited 10-24-2013 04:14 AM
I have a string which is updating continously in the fixed interwal. After each interval it will be updated with some new charchers.
Now I want to string scroll down programmatically when new data arrives. But it is not scrolling down.
I tried to simulate same with VI I attched.
Solved! Go to Solution.
10-24-2013 04:22 AM
You have to program that. Use the Text.ScrollPos property to set the position of the scroll bar.
10-24-2013 04:30 AM - edited 10-24-2013 04:30 AM
Thanks. I found that already. Along with this string length is what I need.
11-04-2013 02:48 PM
String length isn't needed. If you always want to do is scroll to the bottom use the Inf constant.
http://forums.ni.com/t5/LabVIEW/Darren-s-Weekly-Nugget-06-28-2010/td-p/1162899
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
11-05-2013 08:53 PM
But can be done using string length. I think using strlen is better then infinite constant?
11-05-2013 11:47 PM
Why do you think that would be better?
11-06-2013 01:11 AM
I think becasue instead of using infinite, using some fixed and valid value is better.
11-06-2013 06:00 AM
@Ranjeet_Singh wrote:
I think becasue instead of using infinite, using some fixed and valid value is better.
Depends what you want. If you are always going to the end, using INF is by far the simplest, and according the NI, the best way to do it. There's no need for you to calculate the string length and do weird math that may or may not be quite right. Keep It Simple Stupid (KISS).
11-06-2013 06:34 AM - edited 11-06-2013 06:36 AM
Calculating string length points always to the right place and it is working reliably.
It will be great help to provide some link stating INF is better and why?
But I agree INF is better then STRLEN because it doesn't need calculate the strlen in each loop iteration
Thanks for the concern
11-06-2013 07:48 AM
@Ranjeet_Singh wrote:It will be great help to provide some link stating INF is better and why?
Did you read the thread that Hooovahh left earlier? It is Darren, from NI R&D telling us to use it.