LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Binary- BMP conversion

I have a vi that creates a binary file of a sequence of images acquired from a camera, and need to convert this file into BMP files of the individual images.  Any help would be much appreciated.
 
Thanks
Zack
0 Kudos
Message 1 of 6
(3,238 Views)

"Ziz" <x@no.email> wrote in message news:1153752008423-395249@exchange.ni.com...
I have a vi that creates a binary file of a sequence of images acquired from a camera, and need to convert this file into BMP files of the individual images.&nbsp; Any help would be much appreciated.
&nbsp;
Thanks
Zack


It's hard to give detailed help, without knowing the binary format.


If you can read each individual binary dataset, convert it to a 2d array. Then you can store it with the LabVIEW write bitmap file (or pgn or jpg).


Can you point out where you are having problems?


Regards,


Wiebe,




Message 2 of 6
(3,222 Views)

I Can't seem to find any information on if the labview write binary file vi writes writes a header on the file and if so, how long is it?

 

thanks

zack

Message 3 of 6
(3,209 Views)

Zack,

I had a hard time finding info on this myslef. Here is what I was able to find How Can I Write and Read Binary Files Using LabVIEW? and LabVIEW Data Storage.

Hopefully these might help, but if not, please post to let us know. Thanks!

 

Chris C


Message 4 of 6
(3,204 Views)

The link you sent me says the following:

 

"In the second method, LabVIEW creates the header that it needs automatically. To generate the header automatically, a TRUE constant must be wired to header? terminal of the Write File function."

 

Unfortuantely, I think this is outdated, and the "Write File" function does not have  the wired to header terminal.  The article is dated 2002.

Message 5 of 6
(3,192 Views)
Hi, Ziz.

Thanks for pointing that out; it does look like that KnowledgeBase is outdated. I'll submit an update for that.

Based on that it looks like the ability to write your own header is not available with the Write File VI, though that KnowledgeBase does seem to answer your original question (about whether or not LabVIEW writes a header at all).

Have a nice weekend!
Sarah K.
Search PME
National Instruments
Message 6 of 6
(3,175 Views)