LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

pictur fade

Hello All

 

I have attached a vi which is a modification of one posted here previously.

 

The vi takes two .png images and merges them.

 

What I would like it to do (but haven't sufficient LV knowledge to do) is have the picture on the left side (sun with no cloud) be a permanent fixture on a FP.

 

When the two inputs are equal, the picture on the right (sun with cloud) will slowly appear over the top of the first and give the impression of the cloud slowly appearing over the sun. This means of course that the images must aligned fairly exactly. The alternative is to have the second image be only the cloud, and then the alignment is not critical

 

Could someone please give me a clue as to how I might do this

 

Once again, thanks to the gurus who take the time to help.

 

regards

Ray

0 Kudos
Message 1 of 8
(3,305 Views)

No way those file path constants are going to work here.  Plus, you need to initialize your feedback node or it is only going to work once.  And, you are comparing floats, equality is not exactly guaranteed, you should change to In Range, or go to Greater Than or Equal.

 

That said, I copied your images, created PNG files, and it seemed to work fine.  No special alignment was required for me. 

 

What exactly is your issue?

 

Edit:  Much better image selection than the original example.  Smiley Wink

0 Kudos
Message 2 of 8
(3,296 Views)

Ok, I though my blurb made it clear "what exactly my issue was", but here I go again.

 

 

What I would like it to do is have the picture on the left side (sun with no cloud) be a permanent fixture on a FP.

 

When the two inputs are equal, the picture on the right (sun with cloud) will slowly appear over the top of the first and give the impression of the cloud slowly appearing over the sun. This means of course that the images must aligned fairly exactly. The alternative is to have the second image be only the cloud, and then the alignment is not critical

 

When the vi runs, the pict ring for the combined images is empty (meaning a blank white box is visible). I need to have the first image permanetly placed (as if it was there all the time...not just appear after the vi enters the loop. So, really my issue is "how can I have the first image in place...fixed...doesn't disappear......and have the second image fade into view over the first.

 

 

 

 

0 Kudos
Message 3 of 8
(3,288 Views)

 


@rayclout wrote:

 

What I would like it to do is have the picture on the left side (sun with no cloud) be a permanent fixture on a FP.

 

Right now it is a "permanent fixture" on a FP.  Perhaps you mean that would like it to appear in the 2D Picture Indicator (that is not a pict ring).

 

When the two inputs are equal, the picture on the right (sun with cloud) will slowly appear over the top of the first and give the impression of the cloud slowly appearing over the sun. This means of course that the images must aligned fairly exactly. The alternative is to have the second image be only the cloud, and then the alignment is not critical

 

Perhaps if your posted VI would run outside of your computer, this would be evident.  After some reconstructive surgery, this could be true.  Apparently no problem here (other than the fact that as posted it will only work once).  

 

When the vi runs, the pict ring for the combined images is empty (meaning a blank white box is visible). I need to have the first image permanetly placed (as if it was there all the time...not just appear after the vi enters the loop. So, really my issue is "how can I have the first image in place...fixed...doesn't disappear......and have the second image fade into view over the first.

 

That is a MUCH better explanation of your problem.  Two simple fixes.  The better alternative is to simply read the file you want as the permanent image and draw it immediately to the picture control.  Use a Local Variable created from your picture indicator to do this.  Easy to change the images as necessary.  Other fix, read the permanent image, draw it in the picture indicator, make it the default value.  Post the actual image files if you still have problems.

 

 

 

 

Message 4 of 8
(3,282 Views)

Thank you for your help, but I would appreciate some respect as a fellow engineer, and not some errant child who needs to be taught correct grammar constructs.

 

I and other newer programmers on this site are immensely grateful for the assistance provided by those with advanced skills. But, you need to remember that your skills have only been achieved over a period of time, and I'll bet without making a lot of mistakes along the way.

 

Respect is a two-way street, and will be returned when this holier-than-thou attitude ceases.

 

However, once again, I do appreciate your help.

0 Kudos
Message 5 of 8
(3,277 Views)

No disrespect intended here.  I tried to ask for clarification, and then tried to ignore the attitude of the first reply which simply reposted the original and highlight the confusion.  

 

So, at the risk of another flame, I will try once again to elicit the information.

 

What exactly is the issue you have?  Does the fade work as you'd like, and you would like the sun image to always be in the picture control?  From what I can tell, the fading is not a problem.

 

And is there any chance of getting the PNG files like I asked?  Since as you say we all make mistakes, it helps a lot to be able to test things out.  Path constants pointing to your Hard Drive will not work, and the images on the FP are not super helpful.  I have kluged them in paint to PNG files.

 

I have tried to help you, now can you help me?  

0 Kudos
Message 6 of 8
(3,268 Views)

rayclout, are you familiar with the method "Make Current Value Default"? If you choose this method on the Picture Indicator while the picture of the sun is "in" the picture indicator, the value will remain as the default. In other words, the picture indicator will no longer start off as a "blank white box".

 

And, sticking up for Darin, I've read enough of his responses to realize he didn't intend to be rude or demeaning. He and others are eager to jump in and start helping new LabVIEW users, but the primary difficulty in the forum is understanding what exactly you're wanting. Myself, and probably five others, originally downloaded your source code a few hours ago (as of now, your original question already has 45 views!) and began playing with it to see if we could help. Darin was able to respond first, and so we others have stepped down to let him follow through with helping you out. The niceties and formalities were excluded from his response probably just to cut the verbiage and get down to business faster! 🙂

0 Kudos
Message 7 of 8
(3,259 Views)

Have at it.

 

Images are stored in BD constants since I don't have your files.

Message 8 of 8
(3,256 Views)