cls9215 Posted October 8, 2004 Report Share Posted October 8, 2004 hello everybody: I have a question, that is how to create a starting picture(logo) before we open a labview program? that is same as a logo when we open any application program. thanks Quote Link to comment
JackHamilton Posted October 9, 2004 Report Share Posted October 9, 2004 Cis, That is called a "Splashscreen" (which most users find irrating -(this is why I use them alot)) You do this in LabVIEW by first calling the 'Splash' routine first which then calls the main code. I have an example of a splash screen vi on my www.labuseful.com website - enjoy! Quote Link to comment
jpdrolet Posted October 9, 2004 Report Share Posted October 9, 2004 hello everybody:I have a question, that is how to create a starting picture(logo) before we open a labview program? that is same as a logo when we open any application program. thanks 2183[/snapback] In a built application, the splash screen can simply be added as a second modal top level VI. Name this VI with the prefix "About " and this VI will also replace the LabVIEW Run-Time screen when the menu item About... is selected, Quote Link to comment
cls9215 Posted October 9, 2004 Author Report Share Posted October 9, 2004 Thanks everybody!! :worship: your reply let me learning more technique on LabVIEW. thanks again!! Quote Link to comment
cls9215 Posted October 9, 2004 Author Report Share Posted October 9, 2004 Cis,That is called a "Splashscreen" (which most users find irrating -(this is why I use them alot)) You do this in LabVIEW by first calling the 'Splash' routine first which then calls the main code. I have an example of a splash screen vi on my www.labuseful.com website - enjoy! 2185[/snapback] Dear JackHamilton: I have been tried your example program about "Splashscreen", but I find some problems want to ask you, these problems list in following: 1. Whether this example program only running on LabVIEW 6.1? because my LabVIEW version is 7.0, a vi(splashscreen_Rev2.vi) not found when I open this example program. 2. In your example program, why first to open main program then minimize the front panel window? If I exchange this order, frist open "splashscreen.vi" then to open main program, whether can to finish a program that functions as same as your example program?? Thanks!! Quote Link to comment
Michael Aivaliotis Posted October 9, 2004 Report Share Posted October 9, 2004 In a built application, the splash screen can simply be added as a second modal top level VI. Name this VI with the prefix "About " and this VI will also replace the LabVIEW Run-Time screen when the menu item About... is selected, 2186[/snapback] Can you elaborate on this a little bit more? I'm not following. Is this a hidden feature? Also, this isn't really a splash screen but an About screen right? Quote Link to comment
jpdrolet Posted October 9, 2004 Report Share Posted October 9, 2004 Can you elaborate on this a little bit more? I'm not following. Is this a hidden feature? Also, this isn't really a splash screen but an About screen right? 2187[/snapback] It is a documented feature of the application builder. When a VI beginning with About is found in the internal library, this VI will popup when the About builtin menu is selected. It is often the case that the splah screen is the same as the About screen so if you want this About VI to be displayed at startup, include it as a Top Level VI (TLVI) in the build because all TLVIs are opened and run at startup. If you want different screens for splash screen and About, include the splash VI as TLVI and About as Dynamic VI. The About VI must be idle to be displayed so it can't be part of the running hierarchy (it is run dynamically). It has been suggested that the splashscreen loads the main application. It is not necessary since if both splashscreen and main VI are TLVIs, they'll load and run simultaneously at startup. If the splash screen is lightweight and opens quickly, it will also prevent the "loading..." screen to appear when the main application takes too long to load and open its FP. Quote Link to comment
didierj Posted October 11, 2004 Report Share Posted October 11, 2004 It has been suggested that the splashscreen loads the main application. It is not necessary since if both splashscreen and main VI are TLVIs, they'll load and run simultaneously at startup. If the splash screen is lightweight and opens quickly, it will also prevent the "loading..." screen to appear when the main application takes too long to load and open its FP. That's the way I always did it... load+open splashscreen, load main app dynamically, end splashscreen. This is a much easier method. :thumbup: Another question rises up there: how do you know when the splashscreen has to close? Is it just a timed loop, or do you have any sync (occurence or something else)? Quote Link to comment
jpdrolet Posted October 11, 2004 Report Share Posted October 11, 2004 That's the way I always did it... load+open splashscreen, load main app dynamically, end splashscreen. This is a much easier method. :thumbup: Another question rises up there: how do you know when the splashscreen has to close? Is it just a timed loop, or do you have any sync (occurence or something else)? 2197[/snapback] The simplest implemetation of a splashscreen is to put it as a TLVI in the build app. It is not necessary for it to load the main application. For beginners they don't have to go in the details of opening VI references and the unavoidable FAQ of path changes in executables However I agree that loading the main application is a more flexible solution to control how your application loads and runs. *Edited for tags Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.