Labeling Front Panel and Block Diagram Objects

Use object labels to identify objects or document VIs on the LabVIEW front panel or block diagram. Use labels to provide general instructions, identify specific objects, and document Boolean values.

LabVIEW includes the following types of labels:

  • Owned label—Labels specific objects on the front panel or block diagram. Owned labels are owned by a specific object. You can hide owned labels, but you cannot copy or delete them independently of their owners.

    Unlike other labels, owned labels do not only present user-facing text. In LabVIEW, an owned label is intrinsic to the identity of the object that owns it. Aspects of LabVIEW code reference owned labels, so owned labels function both as documentation and code.

    In the LabVIEW environment, the entry Label in a shortcut menu refers to the owned label.

  • Free label—On the front panel, lists instructions to users. On the block diagram, documents code. Functions like a text box on the front panel or the block diagram.

    On the block diagram, you can attach a free label to a block diagram object to create an attached comment.

  • Caption—Facilitates localization. Provides instructions or information that you cannot include in the named label of an object. Appears on the front panel only.

    For localized applications, use captions and localize the captions. Localizing owned labels breaks the VI when the program refers to objects by their owned labels.

  • Boolean text—Labels the individual values for Boolean controls and Boolean indicators. Updates depending on the value of the control or indicator. Appears on the front panel only.
  • You can edit labels after you create them. You also can move owned labels and captions and change the text characteristics of labels.