Every VI
displays an icon, shown in Media 1, in the upper
right corner of the front panel and block diagram windows. An
icon is a graphical representation of a VI. It can contain
text, images, or a combination of both. If you use a VI as a
subVI, the icon identifies the subVI on the block diagram of
the VI.
The default icon contains a number that indicates how many new
VIs you have opened since launching LabVIEW. Create custom
icons to replace the default icon by right-clicking the icon
in the upper right corner of the front panel or block diagram
and selecting Edit Icon from the shortcut menu or
double-clicking the icon in the upper right corner of the
front panel. You also can edit icons by selecting
File>>VI Properties selecting General
from the Category pull-down menu, and clicking
the Edit Icon button.
Use the tools on the left side of the Icon Editor
dialog box to create the icon design in the editing
area. The normal size image of the icon appears in the
appropriate box to the right of the editing area, as shown in
the dialog box in Figure 1.
Depending on the type of monitor you use, you can design a separate icon for monochrome, 16-color, and 256-color mode. LabVIEW uses the monochrome icon for printing unless you have a color printer.
Use the Edit menu to cut, copy, and paste
images from and to the icon. When you select a portion of the
icon and paste an image, LabVIEW resizes the image to fit into
the selection area. You also can drag a graphic from anywhere
in your file system and drop it in the upper right corner of
the front panel or block diagram. LabVIEW converts the graphic
to a
Use the Copy from option on the right side of
the Icon Editor dialog box to copy from a color
icon to a black-and-white icon and vice versa. After you
select a Copy from option, click the OK
button to complete the change.
Note:
Use the tools on the left side of the Icon Editor
dialog box to create the icon design in the editing
area. The normal size image of the icon appears in the
appropriate box to the right of the editing area. The
following tasks can be performed with these tools:
-
Use the
Penciltool to draw and erase pixel by pixel. -
Use the
Linetool to draw straight lines. To draw horizontal, vertical, and diagonal lines, press the<Shift>key while you use this tool to drag the cursor. -
Use the
Color Copytool to copy the foreground color from an element in the icon. -
Use the
Filltool to fill an outlined area with the foreground color. -
Use the
Rectangletool to draw a rectangular border in the foreground color. Double-click this tool to frame the icon in the foreground color. -
Use the
Filled Rectangletool to draw a rectangle with a foreground color frame and filled with the background color. Double-click this tool to frame the icon in the foreground color and fill it with the background color. -
Use the
Selecttool to select an area of the icon to cut, copy, move, or make other changes. Double-click this tool and press the<Delete>key to delete the entire icon. -
Use the
Texttool to enter text into the icon. Double-click this tool to select a different font.(TheWindows)Small Fontsoption works well in icons. -
Use the
Foreground/Backgroundtool to display the current foreground and background colors. Click each rectangle to display a color palette from which you can select new colors. -
Use the options on the right side of the editing area to
perform the following tasks:
- Show Terminals : Displays the terminal pattern of the connector pane.
- OK : Saves the drawing as the icon and returns to the front panel.
- Cancel : Returns to the front panel without saving any changes.
-
The menu bar in the
Icon Editordialog box contains more editing options such asUndo, Redo, Cut, Copy, Paste, andClear.












"A full introductory course on programming with LabVIEW."