10-28-2009 04:56 PM
hi i want to put an animation in the front panel of my VI, could you tell me, what i need to do?, there are a handbook for that? please help me
thanks in advance
10-28-2009 05:03 PM - edited 10-28-2009 05:06 PM
How often are you hoping to change the image? Is a frame once a second? Quarter second? millisecond?
The easies way is a gif (I am pretty sure I used a gif before as a decoration). Obviously though, it isn't programatically controlled.
If you have a series of seperate images you wish to display, you should be able to do that with the 2D picture control. I believe you can load in image data to that. If it is sufficiently slow, you can change it within your program.
EDIT: I think I was wrong on the 2d picture control or it isn't as straight forward as I remember. I will reply with better info soon.
10-28-2009 05:21 PM
Here ya go. I used the 2d picture control in this example. I built an array of N picture data from jpg files chosen through prompts (you can wire constants or controls once you have picked out your files). Then I cycle through displaying them. You change the constant for the delay to hold the image. It then cycles through the images in the array until you stop the program.
Good luck. I hope this helps.
10-28-2009 05:44 PM
10-29-2009 12:49 AM
10-29-2009 04:56 AM
Have you tried searching on NIs website?
How Do I Create an Animation Using a Picture Ring Control in LabVIEW?
GIF Animation in LabVIEW
Adding GIF or Other Images to the Front Panel
10-29-2009 07:44 AM
If the animation is a fixed seq of a reasonable small number of images then the Picture Ring gives the best performance.
If the animation has to chang ethen you can use the Picture control... see here for links to threads on using the Picture Control.
Ben