08-11-2005 11:59 AM
Can a LabVIEW VI Run in the Background Without a Front Panel?
Primary Software: LabVIEW Development Systems>>Full Development System|
| ||||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||
08-11-2005 12:18 PM
Are you doing it exactly as shown in the picture or are you feeding the path yourself?
When building an application into an EXE the executable file itself acts like a directory, so the path to the VI is now c:\...\app.exe\toplevel.vi.
If this didn't help you, I suggest you post the relevant piece of code, or at least an image of it (no BMPs, please).
08-11-2005 01:48 PM
Yes, I am doing it exactly like the KB article. I would have included a image of the block diagram if this tool would have let me. Fred
08-11-2005 01:55 PM
08-11-2005 02:13 PM
08-11-2005 02:26 PM
08-11-2005 02:51 PM
08-11-2005 02:53 PM
I have a guess as to what your problem might be.
As far as I know (I'm almost positive), the RTE needs an open FP to hold itself open, which is why I'm guessing it won't let you close the front panel of the top level VI, at least as long as there are no other FPs open.
Some other options for you:
08-11-2005 03:14 PM
08-11-2005 04:16 PM
There is a second open FP in my application. It is the GUI_Execute.vi just mentioned. It is not THE top level VI however.
It only opens after you try to close the FP of the top level VI. You need to reverse the order (see #2). If you want to make sure it stays in memory, open a reference to it from one of the subVIs.
Either close it, or make it a status window of some sort.
4> Too Rinky Dink and not a real solution. I am trying to make something the looks and works like a normal Windows application.
Well, things don't always work out the way we want them to. LV isn't windows specific and as such creates some trouble when attempting to make "standard windows apps". Although I still think you shouldn't have a problem with this.
In any case, you may be able to set the property Front Panel Window>>State to Hidden, although I think it would do the same thing.