IMAQ WriteFile

NI 5431 Composite Video Generator

NI 5431 Composite Video Generator
IMAQ WriteFile

Writes an image to a file.

Color Palette is used to apply colors to a monochrome image. Color Palette is an array of clusters constructed by the user or supplied by IMAQ GetPalette. This palette is composed of 256 elements for each of the three color planes. A specific color is the result of applying a value between 0 and 255 for each of the three color planes (red, green, and blue). If the three planes have the identical value, 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.
Image is the reference to the image structure to be written to an image file.
File Type describes the file type to be written. The default file type is BMP. Other file types supported are AIPD, TIFF, JPEG, and PNG.
error in (no error) is a cluster that describes the error status before this VI executes. Refer to IMAQ VI Error Clusters for more information about this indicator.
File Path is the complete path name, including drive, directory, and filename, of the file to be written. This path can be supplied by either the user or the VI File Dialog from LabVIEW.
error out is a cluster that describes the error status after this VI executes. Refer to IMAQ VI Error Clusters for more information about this indicator.

The following table indicates the image types that each image file format supports.

File Type Image Types Supported
BMP
JPEG
PNG
TIFF
AIPD