08-11-2010 02:28 PM
Hiya,
My application takes some time to start, so i want a small and quick launcher to kickstart things and show it's working. My current launcher uses a SystemExec that starts the other compiled file, but it's messy to get it to know when the program has started.
So, i've decided to try to make a VI server approach, it should just link the other file and be an easy fix, right? Wrong.
A Static VI reference works in the EXE, but then it loads the big application like a sub-vi, making as slow as before.
A path -> Open VI works in labview, but if i dont add it to Dynamic files it compiles to 300k and there's only a launcher (not too strange), and if i add it i cant compile (error 1003).
Adding both launcher and main to "Startup VI" works, but as in case 1 they start at the same time.
path -> Open VI from a separate .exe (the main separatly compiled) doesn't work (or i cant get it to work)
Any ideas?
/Y
Solved! Go to Solution.
08-12-2010 01:12 AM
Please support this idea about an easier implementation of splash screens.
08-12-2010 01:32 AM
hey,
In 2010 LabVIEW they have added new feature like
Prioritization of subVI by using inline.By using this method you can prioritize your VI and reduce time taken by your sub VI.
Hope this helps...
08-12-2010 01:41 AM
Thanks Omp, but it doesn't solve my problem. Inlining still needs to be fully loaded to memory before executing, which is the opposite idea of a launcher. 🙂
The "start 2 VI's at once" in the application builder should be an easy solution, and being separate they shouldn't need to start at the same time. 😕
(I can then use the VI's in memory property to determine if it's loaded)
/Y
08-12-2010 06:36 AM
Someone put this code out a long time ago. I hope this helps
08-12-2010 06:58 AM
I did reuse mine from the OpenG Application Builder which has a splash screen implementation based on dynamical loading.
Felix
08-12-2010 07:47 AM - edited 08-12-2010 07:50 AM
Thanks Aeastet, it was a quite solution. But as part of the main VI it wont start beforehand. 🙂
Schubert, i dont have that application builder, to my knowledge. Any tips on how it works?
/Y
08-12-2010 09:16 AM
You can download it with the vi package manager. It's free and under BSD license (not exactly sure).
Basically it loads every vi except the top level vi from the llb or exe. Then it loads the top-level vi and invokes the Run method. Then the luncher closes.
Felix
08-12-2010 02:10 PM
That sounds exactly what i'm after Schubert, i'll take a look at it. Thanks, and hope for the best.
/Y
08-12-2010 02:25 PM
Quite a while ago Mark Ridgley posted A splash effect example. Should be easy to upgrade to whatever version you are running. Turns out I was actually in the cube next door when he developed the original but it seems to have gotten around a bit.