01-19-2016 01:06 AM
Hi all,
I want to read animated gif files in labview as well as I want to control the same on block diagram. In labview palette, there is no option to read gif file like read png, jpg, bmp.
Is there any possible way to do it? And i want to optimize the vi memory also.
01-19-2016 01:37 AM
Hi Ragunath,
a quick search yields this: http://digital.ni.com/public.nsf/allkb/8D5E7940947C60B486256E92007F46D0
Does this help you with the importing part of your question?
As for the controlling of the gif: Assuming you mean to control the displayed image, you'd probably be better off just using a picture ring instead. http://digital.ni.com/public.nsf/websearch/71C97F0EBCE22803862569C400729606?OpenDocument
Please let me know if that's not what you want to control if this is not it.
01-21-2016 11:35 AM - edited 01-21-2016 11:37 AM
OpenG Picture package can read GIF files and return each frame of the GIF, along with the delay betwen images. I've never personally used it but after installing it the VI can be found here.
<LabVIEW>\user.lib\_OpenG.lib\picture\picture.llb\Read GIF File (Animated)__ogtk.vi
This information could be used to try to update a picture control at the timed intervals.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
01-25-2016 05:43 AM
If you just want to display an animated GIF, you can use a Web Browser control and load the image's file path as the URL.
01-25-2016 08:11 AM
for some kind of trick you can use copy image to clipboard method if you test this you will be see that you can insert gif image animation into front panel of labveiw then you can make scalel to pan and use it this vi as subi any where that you want see this gif
01-25-2016 08:25 AM - edited 01-25-2016 08:26 AM
Yeah we don't have any reply from OP yet but I think the answer is: If you want to just display a GIF you can by either dragging from Windows Explorer to the Front Panel (or the copy to clipboard). If you want to actually read a GIF file use the OpenG function. And if you want to read a GIF file to display it, and maybe the GIF to be loaded can change, then use the ActiveX webbrowser interface loading the path to the GIF.
It really depends on if the GIF to be loaded changes, and if the contents are important, or just the displayed image. Neither of which OP was clear on.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord