From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, 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: 

why my vi cannot work?

Solved!
Go to solution

I want to change rgb data to a white-black data and save to a bmp file.

 

But i don't know why my data cannot be output into bmp file, only black result.

 

even they can be seen by Draw Flattened Pixmap.vi.  Maybe miss somethng.

 

But i just don't know.

 

Anyone can help me about it?

 

my enviroment:labview 8.5. Format for bmp: h: 234,w:320.

 

thanks.

 

Download All
0 Kudos
Message 1 of 3
(2,622 Views)
Solution
Accepted by topic author mmm2006

You need to define which colors to use.

 

Your VI will work if you wire a 2-element array of color constants (white and black in your case) to the color input of the Flatten Pixmap.vi.

 

Cheers,

Dan

Dan
CLD
Message 2 of 3
(2,618 Views)

hi, DanB1983,

 

just like you said, it work now. Thanks. very nice.

 

br

 

0 Kudos
Message 3 of 3
(2,594 Views)