LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Stringfenster aktuallisieren

Hi all,
 
Ich habe ein Fenster, indem ein String dargestellt wird.
Porgrammatisch wird der String immer größer. Er hat einen Scrollbalken.
 
Ich würde gerne haben, dass immer die aktuelle Zeile angezeigt wird.
Wenn also ein neuer Text im String erscheint, soll nicht der Scrollbalken seine Werte ändern und man kann manuell runtersrcollen sondern der neue Text im String soll direkt angezeigt werden, so dass man nicht manuell runtersrollen muss.
 
Kann mir da Jemand weiterhelfen?
0 Kudos
Message 1 of 3
(2,562 Views)

Hi

I assume you use the "concatenate strings" vi. Based on this, you just have to change the wires - instead of appending the most recent string at the end, just append it at the beginning.

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 2 of 3
(2,559 Views)
Hello Simon,

at least the first line of your message in now in English 🙂

The string indicator has a property node 'Text.ScrollPosition'. You can set a value to this property and the appropriate line is shown. So two options: count the number of lines in your indicator to show the correct line OR wire an incredible high number to the node to show the last line...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 3
(2,557 Views)