LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Auto Scroll Text Indicators

I would like to know if there is an auto scroll property for text indicators?  As text is added to an indicator the scroll bar automatically displays the last line.
 
0 Kudos
Message 1 of 12
(14,779 Views)

There is no built in property that I know of but implementation is simple,  In the key up event set the scroll property to a large number (999999) this way each time you press a key the scroll will go the the end (as long as you have fewer lines than the scroll possition).

 

Paul

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
Message 2 of 12
(14,772 Views)
Of course, if you do not want to use an event structure, you could simply use the Text.ScrollPos property node each time through your while loop as you wrote another line of text to the indicator.

Best regards,
-Sam F, DAQ Marketing Manager
Message 3 of 12
(14,753 Views)
I ended up using text.position property set to 999999 if a toggle switch is set to true. Allowing the user to toggle the autoscroll ON/OFF. 
 
Thank you for help,
0 Kudos
Message 4 of 12
(14,748 Views)

I am using the labview graphical programming standard stuff.

 

The textbox does not have these properties (or whatever) .

 

So are you guys doing  c-programming here????? or what.

 

Of corse i would like to have the cursor stay at EndOfText, but how...................................?

0 Kudos
Message 5 of 12
(14,560 Views)
Right click on the text box and select create, property node, text, and scroll position.  The property node will be created on the block diagram and write 999999 as a constant. 
Message 6 of 12
(14,539 Views)

Aha... my lovely LV8.5 is in german. 

- right-click on textbox, select:

. create->propertynode->text->scroll-position (german: anzeigeposition).........

 

this creates an "item" with error_in/out and a format input .

 

created a constant to connect to that "item". it refused to connect as it is an output to something, not an input.

 

so where do i connect this "item" to...?  where is that constant 999999 to be put in?

0 Kudos
Message 7 of 12
(14,525 Views)

Right click on it and select 'Change to Write'. I have no idea what that might be in German.

 

You could probably benefit from the free on-line courses.

 

p.s You've also posted this same identical question multiple times. Please don't do that again.

Message 8 of 12
(14,520 Views)

Hi Dennis,

 

Working multilingual has its "thrills". dont worry about german.

 

...and yes i was posting somewhere else too, as this subject seems to get a lot of attention, but you get

all of someones postings listed up anyway  .

 

 

OK,here is my current state of "a simple text-terminal-windows"(if it shows up):

 

As mentioned above, we are able to create a Property Node. As for understanding, it is a way to access the Propertys for Class TextBox

(in this example). We can set the Direction to "write", which will SET propertys in that class (namely in the textbox).

 

We do observe that there is no connection to the textbox in the blockdiagram. it is "connected" by the name of the object.

 

We selected "ScrollPosition" as the Property to set, and gave it a dummy value of 999999 to be always at the end.

 

Indeed we now see the text being displayed at the end of screen, thus scrolling up.

 

The next thing we might want for a text-terminal is the proper handling of CR and LF.

 

Currently either CR or LF will cause a CRLF in the textwindow.

 

Is there a way (or property) which may even handle that?

 

0 Kudos
Message 9 of 12
(14,494 Views)

No, the image does not show up. It's on your C: drive and no one has access to it. The correct thing to do is use the Attachement option that is below the message body. Also, since this is a new question, you should create a new thread.

 

In any case, I don't know what you mean by proper handling of CR and LF. You need to define what proper is to you and what you want to change. Isn't a CR or LF supposed to cause a CR or LF in a text window?

Message 10 of 12
(14,477 Views)