Current Publication

Creating Global Variable Controls

LabWindows/CVI

Create»Global Variable

A global variable control displays the value of a global variable defined in LabWindows/CVI when users operate the function panel. To add a global variable to your function panel, select Create»Global Variable in the Function Panel Editor.

The following items appear in the Create Global Variable Control dialog box.

  • Control Label—The label that appears above the control on the function panel.
  • Global Variable Name—The name of the variable whose contents are shown in the global control.
  • Data Type—The data type of the item entered in the input control.
  • Display Format—The format in which the global variable control displays values. You can display integers, longs, shorts, and chars in decimal, hexadecimal, octal, or ASCII format. You can display doubles and floats in either scientific or floating-point notation. If the data type is char *, void *, a meta data type, or an array, the display format control is not valid.
  • Control Width—The width of the control in pixels. The minimum allowed is 24. The maximum allowed is 2,048. The default control width is 145 pixels.
Note Note  Use this global variable control when you create function panels. If you are creating a GUI, refer to the Graphical User Interface topic for information about user interface controls.