Example Code

Autoscrolling to Bottom of Text Indicator

Code and Documents

Attachment

Some serial instruments provide data that have a variety of termination characters including line feeds (\n) and carriage returns (\r).

LabVIEW does not include an option to automatically scroll to the bottom of a front panel text indicator at all times.

This VI provides a workaround to this issue by connecting the data string to two different Match Pattern VIs. One Match Pattern VI looks for line feeds, and the other Match Pattern VI looks for carriage returns. If either of the termination characters is found, the text indicator scrolls down one more position.


Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors