05-01-2006 04:08 AM
05-01-2006 05:36 AM
To create a splash screen you need to get the image into the front panel of a new VI (either by dragging it from explorer or by copying and pasting) and change the settings in File>>VI Settings>>Window Appearance and Window Size to set the window to be a modal centered window with no title bar.
Then run that VI when your program loads until X happens, where X can be anything from having a certain amount of time pass to having the various parts of your application report that they're ready.
You should note that getting the image to be the right size is important because the LV resizing routines are not great and sometime distort your image.
05-01-2006 08:57 AM
I do this with most of my distributed applications, the splash screen is very useful for 2 reasons:
1. applications which take long to loda appear to be hung (more on this)
2. Identified to the user what the application is and who made it including tm and legal information.
if you need to do it for the first reason you need to change the architecture a little, you call the code dynamically from the splash screen, I call this a splash screen/loader example.
The splash screen should be an option included with the application builder with a few options like an image link, close/proceed condition (wait 10 seconds or click event ...), time to display and a dynamic loading with progress option. I would love thsi since we would not have to waste time reinventing the wheel since essentially a splash screen is simple and has very little logic behind it. Also moving it to the app builder would remove it from the code base of the labview application simplifying code readablity since the function is cosmetic and should not concern a tester or the poor sole who inherits your code.
Paul