07-16-2015 02:00 AM
Hello,
How to upload a .gif file from system directory on a front panel by a button click.
Solved! Go to Solution.
07-16-2015 02:28 AM
07-16-2015 04:05 AM
Does the gif have to move? If so you could use the .Net pictureBox.
07-16-2015 04:22 AM
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.
07-16-2015 04:22 AM - edited 07-16-2015 04:23 AM
Yes it have to move.
07-16-2015 04:30 AM - edited 07-16-2015 04:52 AM
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.
07-16-2015 05:00 AM
Another workaround - use a Web Browser control and load the gif into that.
Works with the animation too.
07-16-2015 06:45 AM
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?
07-16-2015 06:54 AM
Try navigating to "about:blank" as the url to empty/blank the display. Or you could try the 'go home' method.
07-16-2015 02:08 PM
how about this well written library, which is completely written in G:
https://decibel.ni.com/content/docs/DOC-3293