From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Re: Include 'Transpose Array' method in the shortcut menu of a 2D array constant/control/indicator

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

0 Kudos
Message 1 of 2
(2,037 Views)

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.

0 Kudos
Message 2 of 2
(1,912 Views)