LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

handbook animation

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

0 Kudos
Message 1 of 7
(3,798 Views)

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.

Message Edited by Sean-user on 10-28-2009 05:06 PM
0 Kudos
Message 2 of 7
(3,796 Views)

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.

0 Kudos
Message 3 of 7
(3,790 Views)
I tend to create one large picture with all of the frames tiled inside a picture indicator.  I set the size of the indicator to that of a single frame and simply change the origin in a loop using a property node.  Seems to give me a little better performance.  I don't have an example on this machine, it is the kind of thing I tend to do at home...
0 Kudos
Message 4 of 7
(3,776 Views)
Can anyone post the code in LV 7.1.
Br,
Leo Fenner Fidelis P.
0 Kudos
Message 5 of 7
(3,753 Views)
0 Kudos
Message 6 of 7
(3,736 Views)

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

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 7 of 7
(3,722 Views)