To download NI software, including the products shown below, visit ni.com/downloads.
Overview
The example demonstrates how to transmit an image by flattening the image to a data string.
Description
Most data transfer mechanisms only accept byte arrays or strings as an input. To transmit IMAQ images the image has to be first converted to a string and then after receiving the image converted back to the IMAQ image data type.
To accomplish that, the IMAQ palette features the 'IMAQ Flatten Image to String' function to generate a data string from the IMAQ image. To convert the data string back to an IMAQ image the 'Unflatten from String' function from the Data Manipulation Palette is used.
Requirements
Software
Hardware
Steps to Implement or Execute Code
Additional Information or References
**The code for this example has been edited to meet the new Community Example Style Guidelines. The edited copy is marked with the text 'NIVerified'. Read here for more information about the new Example Guidelines and Community Platform.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.