05-20-2014 08:56 AM
Hi Eugen, can you help me, how to convert serial data to array 2D like, for example if data 5x5 from 255000255000255000255000255000255000255000255000255000255000255000255000255 to
255 000 255 000 255
000 255 000 255 000
255 000 255 000 255
000 255 000 255 000
255 000 255 000 255
or from:
255
000
255
000
255
etc
To 2D array of above. And convert it by flatten pixmap to be jpeg file.
I'm using LabVIEW 2012.
Thanks in advance
Thx before
06-04-2014 08:30 AM
Eugen might miss this post, since you're not replying to the original thread.
Anyway, use the Reshape Array function (extract the size to match the number of dimensions you need) . For a 2D array, use Transpose 2D Array if rows and columns are wrong.
Use Flatten Pixmap to convert the 2D array to pixmap.
Use Write JPEG File to store as jpg.