LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I create splash screen?

Hi.
I want to know how can I create a window(splash screen) that appears when my program starts? Like Adobes program (Reader, Photoshop, ...). There is a window with some information. I created this image in photoshop but I don't know how can I display it in LabVIEW?
 
Thanks.
Ali S.Mootab
0 Kudos
Message 1 of 3
(3,102 Views)

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.


___________________
Try to take over the world!
0 Kudos
Message 2 of 3
(3,095 Views)

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

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 3 of 3
(3,075 Views)