LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I import a windows metafile or a bitmap file from Autocad v14 to LabVIEW 6i ?


Does LabVIEW 6i have better capability of doing this than previous versions?
Thanks for your response.
0 Kudos
Message 1 of 4
(3,204 Views)
To import an image file into LabVIEW, all you need to do is place this image in the clipboard and paste it to either your front panel or diagram. In your case you would want to open Autocad v14, select your image and select Edit -> Copy. Then from the LabVIEW menu, you would select Edit -> Paste.

As far as I'm aware, this process can be done in all versions of LabVIEW, not just LabVIEW 6i.
0 Kudos
Message 2 of 4
(3,204 Views)
Since you mention bmp file, I understand you have a bmp file, right?
In this case the easiest way to import it in a LV panel is to use the picture functions.
They were available also in 5.1 version.
I attach a simple example that does it.
Hope it helps.

Regards,

Alberto Locatelli
Message 3 of 4
(3,204 Views)
Are you talking about just pasting the wmf or bmp file onto the front panel? Or are you talking about displaying the file in a picture container?

-If you are just talking about pasting the file onto the front panel, all you do is copy the file on to the windows clipboard and then paste right onto the labview front panel. There might be a slight reduction of image quality if you are scaling the image.

-If you are talking about importing the file into a picture container, then you can use under "Graphics and Sound" in the back panel "read bitmap file.vi" and "Draw lattened Pixmap.vi" to do this. I have attached a loadpic.vi example to load a bitmap file. As far as metafile, I'm not sure how you would import it into a picture container. I know that it
can be done using ActiveX control. I have never done it so perhaps someone else might know.
Message 4 of 4
(3,204 Views)