LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I display the windows 'flying files' animation from LabView or CVI?

I have a file backup routine that works, but the user has no indication of the progress of the file transfer. How can I use the Windows standard animation showing pieces of paper flying from one folder to another?

This would initially be for Labwindows/CVI, but will be needed for LabView too soon...

Thanks, Mike Evans
Mike Evans
TRW Conekt
N.I. Alliance Member, UK
http://www.Conekt.net
0 Kudos
Message 1 of 4
(5,891 Views)
Hi Mike,
Microsoft's file copy animation is actually a cheat -It's done through an Animation Control.
My thoughts are therefore either a) in LabVIEW, create a slide control customised to represent a piece of paper moveing from one file to another (attached for LV 6.1), b) use an ActiveX control (LV and CVI), setup to display windows Media Player, playing an AVI (which is simply a collection of Bitmaps) to represent your file transfer (attached is also a copy of the folder to folder transfer avi - the background's pink, but you can use a decent editor to re-do the .bmps that make up the AVI if you want different colours). How you're going to get the time left to transfer though is another matter.
Here's a link to where to download the AVIs.
http://ww
w.mvps.org/vbnet/index.html?code/avi/animationzips.htm

(From the Microsoft Website)
The Animation control allows you to create buttons which display animations, such as .avi files, when clicked. The control can play only AVI files that have no sound. In addition, the Animation control can display only uncompressed .avi files or .avi files that have been compressed using Run-Length Encoding (RLE).

An example of this control is the file copy progress bar in Windows 95/98, which uses an Animation control. Pieces of paper "fly" from one folder to another while the copy operation executes.

Hope that helps

S.
// it takes almost no time to rate an answer Smiley Wink
Download All
Message 2 of 4
(5,891 Views)
Hi Sacha,

Thanks for taking the time to give such a comprehensive answer - it's exactly what I needed to know!

Mike
Mike Evans
TRW Conekt
N.I. Alliance Member, UK
http://www.Conekt.net
0 Kudos
Message 3 of 4
(5,891 Views)
Hi Mike,
no problem.
Good luck.

S.
// it takes almost no time to rate an answer Smiley Wink
Message 4 of 4
(5,891 Views)