LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sending an Labview Image to a .Net program

I have a labview vi that grabs a color image from a camera and displays it. I would also like to send this image to a different machine over TCP or Datasocket to a .Net program (the language is not important to me) that would display it. I am not sure of what is the most efficient method/respesentation for the Labview image that would make it easy to restore this image into a .Net Bitmap.

Thanks in advance,

Michael Terk
0 Kudos
Message 1 of 2
(2,205 Views)
Hello M.T.,

I would suggest using the IMAQ Image to Array VI to get an array representation of the image. Then you can convert the 2D array into a string by using the Flatten To String VI to send the information over DataSocket or TCP/IP.

The following document shows some pros and cons of streaming images over TCP/IP and DataSocket.

The following document shows an example of how to stream images over DataSocket. This document also includes a link to an example program demonstrating how to do this.
0 Kudos
Message 2 of 2
(2,184 Views)