Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Send Image with UDP - Image To Array Problem

hello,
 
i want to send a color image of my camera with UDP!
i tried to convert the image to an array...but i always get an error: invalide image type...i tried all image types...but no success;/
after that i want to convert the array into 1 string!
i added a screenshot!
 
any idea?
 
bye
0 Kudos
Message 1 of 3
(3,176 Views)
"IMAQ ImageToArray" does not work with RGB images. The VI "IMAQ ColorImageToArray" supports this image type.
 
Use the functions "Flatten To String" and "Unflatten From String" to convert the 2D-array to a string - and vice-versa.
 
Hope this helps, Guenter
0 Kudos
Message 2 of 3
(3,162 Views)
hi,
ok thanks, i have to split the string....but much data can i send with udp in 1 packet?

bye
0 Kudos
Message 3 of 3
(3,152 Views)