Prompt User for Input Express VI

Owning Palette: Input Express VIs

Requires: Base Development System

Displays a standard dialog box that prompts users to enter information, such as a user name and password.

Details  

Dialog Box Options
Block Diagram Inputs
Block Diagram Outputs
 Add to the block diagram  Find on the palette

Dialog Box Options

ParameterDescription
Message to DisplayContains the text to display in the dialog box.
Buttons to DisplayContains the following options:
  • First button name—Specifies the text that appears on the first button. By default, the text on the first button is OK.
  • Second button name—Specifies the text that appears on the second button. By default, the text on the second button is Cancel. This option is available only when you place a checkmark in the Display second button checkbox.
  • Display second button—Specifies whether a second button is displayed in the dialog box.
InputsSpecifies the name and data type of the controls that appear in the dialog box. The Inputs you list here are returned as outputs on the block diagram. Input Name is the name of the control and instructs users what to enter into the control. Input Data Type is the type of control you want to use in the dialog box. You can choose from the following options: Number, Checkbox, or Text Entry Box.
Edit InputsContains the following options:
  • Insert—Inserts a new row in the Inputs list above the selected row.
  • Delete—Deletes the selected input.
Window TitleContains the text to display in the title bar of the dialog box.

Block Diagram Inputs

ParameterDescription
EnableEnables or disables the Express VI. The default is ON or TRUE.
error inDescribes error conditions that occur before this node runs.

Block Diagram Outputs

ParameterDescription
OKReturns TRUE when you click the first button in the dialog box and FALSE when you click the second button.
error outContains error information. This output provides standard error out functionality.

Prompt User for Input Details

Note  The behavior of this VI changes depending upon the target. If the current target does not or might not have a host computer connected, the configuration dialog box displays warnings next to options that are invalid without a host. If you configure this VI to prompt for input and run the VI on a target with no user interface, such as the Real-Time Module with no host computer connected, this VI returns an error.

This Express VI operates similarly to the following VIs and functions:

One Button Dialog
Two Button Dialog