Example Code

String indicator "text to size" property workaround

The indicators for strings do not allow you to use the "text to size" property.  This example shows you how to change the length of the string indicator to show all of the characters. To workaround this you can set the string size width to be proportional to the number of characters in the string.  See below.

stringmanip.png

This doesn't work perfectly for smaller strings.  A better method for scaling could be implemented.

Justin Parker
National Instruments
Product Support Engineer

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

Contributors