ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Convert BMP to XBM format

Hello Friends, 

 

I am trying to convert a BMP file created in labview to XBM format for use in an e-paper display. Does anyone have a suggested strategy for this goal?

 

Best Regards, 

Matt

0 Kudos
Message 1 of 4
(4,234 Views)

Find a program that will do this for you and has a command line interface. Call that program using system exec

0 Kudos
Message 2 of 4
(4,231 Views)

Thanks for the additional info! As a follow up question, I am using the system exec VI and passing the following argurments into the "command line" input:

 

 C:\Program Files\ImageMagick-7.0.1-Q16\convert.exe test.bmp test.xbm

 

It returns error code 4. For this project, I am trying to convert a bmp file (created in the vi) to a xbm file using ImageMagick's convert function. Iam on a windows 10 64bit system. Thanks for any additional info you can provide. 

0 Kudos
Message 3 of 4
(4,157 Views)

Ok, 

 

So I FINALLY cracked ths nut for anyone interested. I created a batch file in notepad, pasted my imagemagick convert commands, and saved it as testbat.bat.   I then called the batch file from the command line VI using

cmd /c testbat.bat

 

And that did it for me 🙂

0 Kudos
Message 4 of 4
(4,023 Views)