LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

gif upload

Solved!
Go to solution

Hello,

How to upload a .gif file  from system directory on a front panel by a button click.

0 Kudos
Message 1 of 10
(4,193 Views)

Hi Venka,

 

use a graphics converter of your own choice to convert that GIF to PNG.

After having done so you use the standard PNG read function and display the image in a 2D picture indicator…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 10
(4,177 Views)

Does the gif have to move? If so you could use the .Net pictureBox.

 

MSDN Picturebox



Remember Cunningham's Law
0 Kudos
Message 3 of 10
(4,128 Views)

Converting a gif file format gives many number of png files which cant be displayed at a time on labview.Im attaching gif file which I want to display on front panel.

0 Kudos
Message 4 of 10
(4,122 Views)

Yes it have to move.

0 Kudos
Message 5 of 10
(4,120 Views)

So, after playing around with the picturebox myself a bit, I'm gonna suggest just dragging the Picture on the Front panel and making it Visible/Invisible whenever needed using property nodes. Don't know what that does to the performance of your VI, though.

 

Edit: To expand on this a bit more: The way you usually see things like that done in the LabVIEW examples is by inserting all the pictures into a pict ring and changing through it programmatically. But that isn't really an option if you get hundreds of images.



Remember Cunningham's Law
Message 6 of 10
(4,096 Views)
Solution
Accepted by topic author Venkateshnenavath

Another workaround - use a Web Browser control and load the gif into that.

 

2015-07-16_10-58-16.png

 

Works with the animation too.


LabVIEW Champion, CLA, CLED, CTD
(blog)
Message 7 of 10
(4,075 Views)

Thanks for the solution.But after the first run of the program,it still shows the animation.I mean it always shows the animation no matter what we do(close and reopen the front panel).Can we do something to avoid it?

0 Kudos
Message 8 of 10
(4,009 Views)

Try navigating to "about:blank" as the url to empty/blank the display. Or you could try the 'go home' method.


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 9 of 10
(4,002 Views)

how about this well written library, which is completely written in G:

https://decibel.ni.com/content/docs/DOC-3293

 

2015-07-16_display-gif.PNG

Message 10 of 10
(3,962 Views)