LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

2D bit plot (bitmap)

Hello,
I have a device that sends me acquired waveform as a bitmap in following form- if the pixel is on bit is set, otherwise bit=0.

For simplicity lets assume that display is 8x8 pixels- than when I got data I will have 8 bytes, one for every column.

0 bit of 1st byte is upper left corner, and 7th bit of 8th byte is lower-right corner. In one column (byte) more than one bit can be set.

How can I plot/analize such a bitstream in LabView- I already tried for a couple of hours and I failed,

Thank you in advance for any halp or suggestion
Rafal
0 Kudos
Message 1 of 3
(3,164 Views)

Hi Rafal,

Here is a screenshot of a VI that takes an array of bytes and converts that into a 2D array of 0s and 1s that you can then do whatever you want with...in my case I plotted it to an Intensity Graph to see the actual visual arrangement of the pixels:

Hope this helps,
-D

Message Edited by Darren on 02-16-2006 01:23 PM

Message 2 of 3
(3,159 Views)
Hi Darren,

Thanks a lot- that is what I was what I was looking
for.

cheers
Rafal
0 Kudos
Message 3 of 3
(3,143 Views)