LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Scrolling down String programatically

Solved!
Go to solution

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.

 

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 1 of 17
(3,395 Views)

You have to program that. Use the Text.ScrollPos property to set the position of the scroll bar.

 

Message 2 of 17
(3,383 Views)
Solution
Accepted by topic author Ranjeet_Singh

Thanks. I found that already. Along with this string length is what I need.

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
Message 3 of 17
(3,379 Views)

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

0 Kudos
Message 4 of 17
(3,323 Views)

But can be done using string length. I think using strlen is better then infinite constant?

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 5 of 17
(3,307 Views)

Why do you think that would be better?

0 Kudos
Message 6 of 17
(3,298 Views)

I think becasue instead of using infinite, using some fixed and valid value is better.

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 7 of 17
(3,292 Views)

@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).


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 8 of 17
(3,282 Views)

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 

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 9 of 17
(3,276 Views)

@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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 10 of 17
(3,267 Views)