Contents
  1. 1. Numeric Controls
  2. 2. Boolean Controls
  3. 3. String Controls
  4. 4. Enum and Ring Controls

LabVIEW Study Notes: LabVIEW Study Notes (I): Basic Introduction LabVIEW Study Notes (II): Filter Experiment LabVIEW Study Notes (III): Basic Controls LabVIEW Study Notes (IV): Dynamic Data Types LabVIEW Study Notes (V): Comprehensive Data Type Experiment LabVIEW Study Notes (VI): While Loops and For Loops LabVIEW Study Notes (VII): Variables and Shift Registers LabVIEW Study Notes (VIII): Property Nodes LabVIEW Study Notes (IX): Arrays and Clusters LabVIEW Study Notes (X): Case Structures Other Experiment Records


1. Numeric Controls

  • Numeric controls can represent different types of numeric values
  • On the block diagram or front panel, right-click a control, indicator, or constant and select Representation from the shortcut menu to change the representation of the numeric data Numeric Controls

2. Boolean Controls

  • The most important setting for a Boolean control is its mechanical action.
Mechanical ActionEffect
Switch When PressedChanges state when the button is pressed. Remains in the changed state until another button is pressed
Switch When ReleasedChanges state when the button is released. Remains in the current state until another button is released
Switch Until ReleasedChanges state when the button is pressed. Returns to its original state when the button is released
Latch When PressedChanges state when the button is pressed. Returns to its original state after LabVIEW reads the control value
Latch When ReleasedChanges state when the button is released. Returns to its original state after LabVIEW reads the control value
Latch Until ReleasedChanges state when the button is pressed. Returns to its original state after the button is released and LabVIEW reads the control value

Boolean Controls

3. String Controls

  • The display type can be changed from the shortcut menu: Normal Display, ” Codes Display, Password Display, or Hex Display
  • In LabVIEW, strings are pink
  • Numeric/string conversion functions can convert string data/controls to and from various types of numeric data. String data can also be converted to and from paths and arrays
  • String controls can use Concatenate Strings from the Functions palette, along with tab and carriage return/line feed characters, to convert multiple string values into a string in a specified format for creating reports String Controls

4. Enum and Ring Controls

  • Ring control: Right-click the ring control and select Edit Items from the shortcut menu, or click the Edit Items tab in the Properties dialog box, to add items to the control’s drop-down list and change their order Enum and Ring Controls Enum and Ring Controls (2)
  • Enum control: When an enum control is connected to the selector terminal of a Case Structure, LabVIEW compares the strings in the control with the case conditions rather than with the control’s numeric values Enum and Ring Controls (3)
  • When the data is too large, an enum can display it more effectively, whereas a ring control sometimes requires changing its data type to store larger data. Enum and Ring Controls (4)