Current Publication

Creating Return Value Controls

LabWindows/CVI

Create»Return Value

A return value control displays a value returned from a function. You can use a return value control only if the function has a non-void data type. To add a return value control to your function panel, select Create»Return Value in the Function Panel Editor.

The following items appear in the Create Return Value Control dialog box.

  • Control Label—The label that appears above the control on the function panel.
  • Data Type—The data type of the variable or value displayed in the return value control. The data type can be any data type other than an array type or a meta data type.
  • Display Format—The format in which the return value 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 * or void *, 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 return value 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.