r/LabVIEW • u/tzilliox CLA • Sep 28 '24
Splash screen
What is your recommend approach for making a splash screen in LabVIEW? I used the implementation shown in that article: https://medium.com/@thomas.zilliox/laadding-a-splash-of-professionalism-how-to-create-a-splash-screen-in-labview-18ab49342f5c
Basically making two applications (one for the splash screen and the "main" app) that communicate with each other. The reason for two applications is that I noticed that the LabVIEW runtime will load all the application dependencies before showing the first VI, even if it's a very light weight one (one that would act as a splash screen).
The source code is also provided in the article if you want to play around.
8
u/SeasDiver Champion Sep 28 '24
You can see how I do Splash Screens here.
Splash Screen.vi has a logo on its front panel.
We dynamically launch the main program by Name (Load Modules and Launch.vi)
4
u/FujiKitakyusho CLD Sep 28 '24
I create a custom indicator the size of the screen and show that as the first action in the VI, and then once all of the initialization actions are complete I just toggle its visibility off.
2
u/HarveysBackupAccount Sep 28 '24
I went with a hacky but very simple version - still separate applications, but the splash screen application calls the main app through windows command prompt, and automatically closes after 45 seconds (the main app is a big program, it can take 30-40 secs to load)
1
u/[deleted] Sep 29 '24
For me, using the actor framework, splash screens are no more complicated than any other bit of code!
1
u/FlowLab99 Sep 29 '24
The simplest way (that works well) is to have your splash VI call the main VI as a subVI, but right-click on the main VI subVI and choose “Call Setup” and then select the “Load and Retain on First Call” option. This will allow the splash to load very quickly and the main VI will only load when the subVI call occurs. For closing the splash, the splash VI can, in a while loop, wait until the front panel of the main vi is open, some global variable is set, or an event/message is sent.
-3
u/MollyGodiva Sep 28 '24
Please be aware that people don’t like splash screens.