From 6:00 PM CST Friday, Feb 15th - 2:00 AM CST Sunday, Feb 17th, ni.com will be undergoing system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Table Of Contents

Display Error (G Dataflow)

Last Modified: January 12, 2018

Opens a dialog that displays details if an error or warning occurs. This node does nothing if no error or warning occurs.

connector_pane_image
datatype_icon

error in

An error cluster that you use to check for errors or warnings.

datatype_icon

type of dialog

Type of dialog box to display, if any.

Regardless of this value, this node returns the error information and a message describing the error.

Name Description
no dialog

Displays no dialog box. This is useful if you want to have programmatic control over handling errors.

OK message

Displays a dialog box with a single OK button if an error occurs. After the user clicks OK, this node returns control to the main diagram.

continue or stop message

Displays a dialog box with buttons if an error occurs. The buttons either continue or stop execution.

OK message + warnings

Displays a dialog box with a single OK button if an error or warning occurs. After the user clicks OK, this node returns control to the main diagram.

continue/stop + warnings

Displays a dialog box with buttons if an error or warning occurs. The buttons either continue or stop execution.

Default: OK message

datatype_icon

error?

A Boolean that indicates if an error occurred.

True An error occurred.
False A warning occurred or no error or warning occurred.
datatype_icon

code

The error or warning code. If error? is True, code is an error code. If error? is False, code is 0 or a warning code.

datatype_icon

location

A string describing where the error or warning occurred. This string is empty if the error cluster contains no location information. If the error cluster contains a call chain, this node returns the call chain formatted as a single, multiline string.

datatype_icon

description

The human-readable error description of the error cluster. If there is no error, this is No error.

Where This Node Can Run:

Desktop OS: Windows

FPGA: Not supported

Web Server: Not supported in VIs that run in a web application


Recently Viewed Topics