Example Code

Scrolling text in a 2D Picture Control

Code and Documents

Attachment

Introduction

If you're bored of standard user interfaces, and want a neat way of displaying text, then this example might interest you.

Using a 2D picture control, you can create scrolling text on your Front Panel. This kind of display is pretty ubiquitous, and now you can add it to your own VIs.

This VI uses a reference to set the value of the 2D Picture control. The actual sub-VI contains a while loop within it, so it also requires a global variable to stop its execution.

Also, the sub-VI will automatically read the size of the 2D Picture Control, so that text will consistently and continuously scroll, regardless of the size of the picture.

FP.PNG

Josh E
Applications Engineer
National Instruments UK & Ireland

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

Contributors