Academic Company Events Community Support Solutions Products & Services Contact NI MyNI
11 ratings:
 3.72 out of 5   

GIF Animation in LabVIEW

Primary Software:
Primary Software Version: 8.0.1
Primary Software Fixed Version: N/A
Secondary Software: N/A

I have an animated GIF that I've imported into LabVIEW using Edit»Import Picture From File... and pasted the image onto the front panel or block diagram. However, only the first frame of the animated GIF displays. Why isn't the GIF animated in LabVIEW?

LabVIEW does allow you to import some animated GIFs onto the front panel and the block diagram. Because of the way that the GIF specification is defined, there are multiple ways to do animation and LabVIEW does not necessarily support them all. Two of methods are control blocks and extension blocks. Control blocks allow you to specify the pause between images. Extension blocks are not necessarily a part of the GIF specification, but they are used by some applications (most commonly web browsers) to do animation. The effect of this is some animated GIFs will work in LabVIEW and others will not. Here are a couple of ideas you can try to animate your image in LabVIEW.
  • If you have software which allows you to create animated GIFs, try breaking the animation into its separate images and re-compiling them into a GIF.

  • Break the animation into its separate images and use a picture ring to animate them

Attached are a two examples of GIFs which will work in LabVIEW. The 2S-m1-animated.gif was found on Google.

The test.gif was created using the shareware GIF animation utility called Barbarosa Gif Animator.

Related Links:
KnowledgeBase 24SDQP0W: How Do I Create an Animation Using a Picture Ring Control in LabVIEW?



Report Date: 05/12/2004
Last Updated: 04/28/2006
Document ID: 39BH533U

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit