Table Of Contents

Window Draw (G Dataflow)

Last Modified: October 24, 2017

Displays an image in an image window. The image window appears automatically when the VI is executed. The default image window does not have scrollbars. You can add scrollbars by using the Window Setup.gvi VI.

Use the Get Set Image Bit Depth.gvi VI to set the bit depth of 16-bit monochrome and 64-bit RGB images. IMAQ WindDraw uses this specified bit depth to display the image.

Use the Window Display Mapping.gvi VI to set the pixel mapping policy for displaying 16-bit images of an unspecified bit depth.

connector_pane_image
datatype_icon

window number

Number from 0 to 15 that specifies the window in which to display the image.

You can display up to 16 windows simultaneously. Each window is identified by a number ranging from 0 to 15. Only the specified image window is affected; all other image windows remain the same.

spd-note-note
Note  

When using LabVIEW Real-Time, set this control to 15 to display to RT Video Out. You also can use IMAQ RT Video Out to display to RT Video Out.

Default: 0

datatype_icon

image in

Reference to the displayed image.

Floating point images are displayed by scaling the pixel values to 8 bits. 16-bit images that have a specified bit depth are displayed by scaling the pixel values to 8 bits based on the specified bit depth. 16-bit images that do not have a specified bit depth are displayed according to the Window Display Mapping node.

datatype_icon

title

Name of the image window. When a string is connected to this input, the image window automatically takes that name.

datatype_icon

color palette

Numeric cluster that applies a color palette to the image window.

Array of clusters constructed by the user. This palette is composed of 256 elements for each of the three color planes (red, green, and blue). A specific color is the result of applying a value between 0 and 255 to each of the three color planes. If the three planes have identical values, a gray level is obtained (0 specifies black and 255 specifies white). If the image type requires a color palette and it is not supplied, a grayscale color palette is generated and written.

For best results, set your video adapter to high color or true color.

datatype_icon

Red

Value of the red color plane.

datatype_icon

Green

Value of the green color plane.

datatype_icon

Blue

Value of the blue color plane.

datatype_icon

error in

Error conditions that occur before this node runs.

The node responds to this input according to standard error behavior.

Standard Error Behavior

Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

error in does not contain an error error in contains an error
If no error occurred before the node runs, the node begins execution normally.

If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

Default: No error

datatype_icon

resize to image size

Boolean value that specifies whether the user wants to resize the image window automatically to fit the image size.

True Resize the image window to automatically fit the image size. In this case, the user does not have to know the size of a source image before displaying it.
False Do not resize the image window to fit the image size.

Default: True

datatype_icon

image out

Reference to the source image.

datatype_icon

error out

Error information.

The node produces this output according to standard error behavior.

Standard Error Behavior

Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

error in does not contain an error error in contains an error
If no error occurred before the node runs, the node begins execution normally.

If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

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