Summary: In this lesson, you will learn how to create string controls and indicators.
Controls>>Text Controls and Controls>>Text
Indicators palettes to simulate text entry boxes and
labels. Use the Operating tool or Labeling tool to type or
edit text in a string control. Use the Positioning tool to
resize a front panel string object. To minimize the space that
a string object occupies, right-click the object and select
the Visible Items>>Scrollbar option from the
shortcut menu.
| Display Type | Description | Message |
|---|---|---|
| Normal Display | Displays printable characters using the font of the control. Non-printable characters generally appear as boxes. There are four display types. |
There are four display types. \ is a
backslash.
|
| '\' Codes Display | Displays backslash codes for all non-displayable characters. |
There\sare\sfour\sdisplay\stypes.\n\\\sis\sa\sbackslash.
|
| Password Display | Displays an asterisk (*) for each character including spaces. |
***************************** *****************
|
| Hex Display | Displays the ASCII value of each character in hex instead of the character itself. |
5468 6572 6520 6172 6520 666F 7572 2064 6973 706C 6179
2074 7970 6573 2E0A 5C20 6973 2061 2062 6163 6B73 6C61
7368 2E
|
Controls>>All
Controls>>List & Table palette or the Express
Table VI located on the Controls>>Text
Indicators palette to create a table on the front
panel. Each cell in a table is a string, and each cell resides
in a column and a row. Therefore, a table is a display for a
2D array of strings. The illustration in Figure 1
shows a table and all its parts.
![]() Figure 1:
1. Cell Indicated by Index Values, 2. Column Headings,
3. Vertical Scrollbar, 4. Horizontal Scrollbar, 5. Row Headings,
6. Horizontal Index, 7. Vertical Index
|
Operating tool or the
Labeling tool to select a cell and typing text in the selected
cell.
Comments, questions, feedback, criticisms?
"A full introductory course on programming with LabVIEW."