LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to create a controlled moving object on screen

hello all,

can any one help me regarding importing the picture in its exact shape into the LabVIEW. I tried with image editing software like photoshop, but while copying the picture photoshop copies exact layer but, if that is imported into LabVIEW their will be a white backgroung appearing which is not required, can any one help me.


thanks all,

jagadeesh
0 Kudos
Message 11 of 20
(1,476 Views)
Hi Jagadeesh!

I have attached a .gif file to this post. It is a circular image with a transparent background. If you go to Edit->Import Picture from File and then paste it to the front panel, there will not be a "white background". Is this what you are asking about?

Hope this helps!

Travis H.
National Instruments
Travis H.
LabVIEW R&D
National Instruments
0 Kudos
Message 12 of 20
(1,462 Views)
Thanks Travis,

I would like to elaborate my problem with all details I know ,

I am developing a project in which a cabinet has to be automated,In each cabinet there will be many drawers and each drawer has many bins,I wanted to use picture which looks real, and I have to use some other pictures on those pictures ,so picture on picture to look real I wanted the background to be transparent,I tried your sugestion even that didn't work Is it b'cause evaluation sotware doesn't support or is there any other reason I am using lv7.0 evaluation version.I have attached a cabinet file for yur reference

looking forward for your suggestion 🙂

thanks
jagadeesh
0 Kudos
Message 13 of 20
(1,452 Views)
Hi Jagadeesh,

When you say that it still didn't work, what do you mean? Do you mean that trying to import *my* picture still left a white background? Or do you meant that trying to import *your* picture still left a white background? I am able to import my picture into LabVIEW with a transparent background without a problem in LV 7.0. However, your picture (Anesthesia.jpg) does not actually have a transparent background, so it makes sense that there is a box around it when importing it into LabVIEW. JPG files do not support transparent backgrounds, while GIF and PNG images do.

Hope this helps!

Travis H.
Travis H.
LabVIEW R&D
National Instruments
0 Kudos
Message 14 of 20
(1,439 Views)
Thanks a lot,

I tried to import my picture rather than yours it didn't worked, but while importing yours it worked. May I know the reason behind selecting the image of exact kind.

thanks
jagadeesh
0 Kudos
Message 15 of 20
(1,430 Views)
Hi Jagadeesh,

I'm not sure I understand exactly what you mean by "the reason behind selecting the image of exact kind." However, like I mentioned in the previous post, your image is a JPG file (which doesn't support transparency).

For more information of picture file types, including a description of transparency and which file types support transparency, I would suggest reading these webpages:

http://animalscience.ucdavis.edu/Intranet/Graphics/PictureFormat/default.htm

http://www.hitmill.com/html/webimages.html

Note: It looks like GIF, PNG, and TIFF are the only file types that support transparency.

Note2: You can make a GIF with transparency by creating a .psd file (with transparency) in Photoshop and then saving it as a GIF.

Hope this helps!

Travis H.
National Instruments
Travis H.
LabVIEW R&D
National Instruments
0 Kudos
Message 16 of 20
(1,427 Views)
Thanks Travis,

It worked with the GIF image as you said it supports transperancy, thanks a lot for your suggestion :), there is problem of updating an image of the drawer in which there are several bins that has to be accessed by clicking on it ,it should open and close . using GIF format I implemented several bins on a drawer but the updation time of each picture element is very slow and appears as though each object is dragged one by one where it shoul be simultaneously.

thanks,

jagadeesh
0 Kudos
Message 17 of 20
(1,413 Views)
Hi Jagadeesh,

This might just be the nature of the beast as far as speed goes. If you would like to post a small VI exemplifying the behavior that you are seeing, I'd be happy to take a look.

Travis H.
National Instruments
Travis H.
LabVIEW R&D
National Instruments
0 Kudos
Message 18 of 20
(1,406 Views)
Can any one suggest me how to open an reentrant file in front panel and run it, extract some calculated information from it and close that file, programatically.


thanks to all

raju
0 Kudos
Message 19 of 20
(1,343 Views)
I'm not sure I entirely understand what you want.
You can use VI server methods to open a VI, run it and get data from it.
If you want to use a subpanel for this, you can find information about it in the LV help files. I'm not sure you can use reentrant VIs in a subpanel, and if you can, I'm not sure what data you will see.
If you have more questions, please start a new thread. Mixing different topics into a single thread (especially a long one like this) is not a good idea.

___________________
Try to take over the world!
0 Kudos
Message 20 of 20
(1,338 Views)