Write Image Express VI
- Updated2023-02-21
- 4 minute(s) read
Owning Palette: Biomedical File I/O Express VIs
Requires: Biomedical Toolkit
Writes image data to different file types, such as BMP, JPEG, PNG, and DICOM.
| Dialog Box Options |
| Block Diagram Inputs |
| Block Diagram Outputs |
Dialog Box Options
| Parameter | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Write Action | Specifies to write image data to one file or to multiple files.
| |||||||||||||||
| File Path Configuration | Specifies settings for file type, color space, file path, folder path, and filenames.
| |||||||||||||||
| Input Data Type | Specifies the data type of the image data that you want to write to file(s). This VI automatically specifies to use 2D array for writing images to one file and use 3D array for writing images to multiple files.
| |||||||||||||||
| Input DICOM Tags | Specifies the attributes for DICOM files. This option is available only when you select DICOM (.dcm) in File Type. Contains the following options:
| |||||||||||||||
| If A File Already Exists | Specifies how this Express VI write image data to an existing file.
|
Block Diagram Inputs
| Parameter | Description |
|---|---|
| 2D array (I32) | Specifies I32 as the data type for the output array for a single image. |
| 2D array (U64) | Specifies U64 as the data type for the output array for a single image. |
| 3D array (I32) | Specifies I32 as the data type for the output array for multiple image files. |
| 3D array (U64) | Specifies U64 as the data type for the output array for multiple image files. |
| file path in | Specifies the path to the file to which you want to write image data. |
| folder path in | Specifies the path to the folder in which you want to write image data to multiple files. |
| error in (no error) | Describes error conditions that occur before this node runs. |
| DICOM tags in | Specifies the DICOM information to write to the DICOM files. This terminal is available only when you select DICOM as the File type, 2D array as the Input Data Type, and Write single image file as the Write Action in the Configure Write Image dialog box. |
| multiple DICOM tags in | Specifies the DICOM information to write to the DICOM files. This terminal is available only when you select DICOM as the File type, 3D array as the Input data type, and Write multiple image files as the Write Action in the Configure Write Image dialog box. |
Block Diagram Outputs
| Parameter | Description |
|---|---|
| file path out | Return the path to the file to which this VI writes image data. |
| folder path out | Return the path to the folder in which this VI writes image data to multiple files. |
| error out | Contains error information. This output provides standard error out functionality. |
Examples
Refer to the following VIs for examples of using the Write Image VI:
- Medical Image File Format Converter VI: labview\examples\Biomedical\Medical Image
- Write and Read DICOM Tags VI: labview\examples\Biomedical\Medical Image