08-12-2010 02:26 PM
@Jeff Bohrer wrote:
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.
That was the one I added eariler. I did not remember where it came from.
08-13-2010 06:00 AM
That application creates a Splash effect by scrolling the main VI's panel, thus it must first open the full and slow application. 😕
/Y
08-13-2010 09:27 AM
As I recall- the effect was used by a small top-level vi that dynamically launched a main app instance detemined by a config file setting and the config file was relative to the "splash" effect facade. Essentially creating a two-stage load process one small load that set the splash effect to hide the load time of the main app instance.
08-13-2010 10:30 AM
hey Y,
the way we do it is to have a small main vi that calls the other vis dynamically (through vi server), which is more or less one of your suggestions. When we compile the small main vi is set as "startup" and we then include an "all vis" that contains everything else as dynamic. The main vi just has the splash screen pic on its front panel, which then loads immediately as everything else is loading in the background.
as to your 1003 compile error, i think the following thread might be helpful: http://forums.ni.com/t5/FieldPoint-Family/Error-1003-when-I-build-an-exe/m-p/309971
as far as i know, using a splash-screen startup vi to dynamically load the big vis using vi server is the "normal" way to go in LV. It cetainly has worked well for me in LV 6-8
08-13-2010 01:26 PM
Hi Ludwig,
Do you launch your vi's as paths -> open vi ref or as static vi ref -> call by ref? It's only the former that gives me 1003.
I do have some diagram disable i think (i'm at home now), i'll have to take a look at that on monday.
/Y
08-13-2010 01:58 PM
we use (absolute) paths and send them to the open vi ref with "wait until done" set to False and no strict type references.
it sounds like your 1003 is a bug. you might have to locate the "uncompiling" portion of your code and "fix" it by rewiring a few things; it looks like this might be similar to the ever-recurring "insane object" errors, in which code looks fine, but doesn't compile. the only fix i've found has always been to re-write it 😞
here is a jpeg of the code we use and a vi (LV7.1) of the same. hope this helps (on monday).
08-16-2010 01:40 AM
Thanks alot all of you!
Michael Ludwig hit the nail though, i'd basically done the same as Ludwigs last post, but it was the Diagram Disable that prevented me from compiling! Once removed i could use my first solution of path -> open through vi server.
If that's not a bug i dont know what is, one that has cost me more time than i dare admit.
/Y
10-12-2011 04:54 PM
Looking for a good implementation of the splash screen. Has anything changed since 2010?
11-16-2011 03:21 PM - edited 11-16-2011 03:22 PM
I am still amazed NI has so many complex things in LabVIEW, and there is no such a simple thing as splash screen implementaiton...
11-16-2011 04:32 PM
1 open VI ref and run it through VI server is simple enough. 🙂
/Y