LabVIEW closes while VI's are still running in the background

I have created a large application that is split between VB 6 and LV 6.1. The LabVIEW portion runs in the background, except that the VB portion can request that a LabVIEW user interface be presented on demand. Any time after this LabVIEW user interface has been opened and closed, opening and closing another application (or even just hiding a top-level window in another application) will cause LabVIEW to close, taking my background processing with it.
If the LabVIEW code is running as source code, LabVIEW prompts me before closing. However, when the LabVIEW code is running as an executable (.exe), the executable closes without prompting in this circumstance.
The scenario can be reproduced with a standard LabVIEW sample program. Proceed as follows:
1) Open VBToLV.vbp (the example program distributed with LabVIEW 6.1).
2) Start the VB program running.
3) Press the Launch LabVIEW button on the user interface of the VB program.
4) Enter an expression in the text box provided.
5) Select Display VI Front Panel.
6) Press the Run VI button.
7) Close the VI front panel by clicking its "X" button.
8) Open any handy application, such as Windows Explorer or Notepad.
9) Close this most-recently-opened program.
10) The LabVIEW Exit screen appears.
11) Exit LabVIEW.
12) Press the Run VI button.
13) An error occurs because LabVIEW has closed.
If the LabVIEW code had been built into an executable and called accordingly, there would have been no LabVIEW exit screen. The executable would have just exited silently.
This is not the way a COM server is supposed to behave. The VB program is still holding a valid reference to the server and it should remain open.
It appears that LabVIEW is monitoring the total number of top-level windows that are open. I suppose that this is how LabVIEW figures out when its own FP windows have been closed. In this case, it doesn't notice that all of its windows have been closed until some other window closes.
I have a work-around, but it's ugly.
Ron Martin
Balance Technology Inc.

Hi,
Perhaps you use references to windows in LabVIEW. If you get those
references with a full path (e.g. c:\code\subvis\vi1.vi), this will work
while in LabVIEW environment. But when an application is build, this will
fail, because the vi is no longer there. Try using the name in a string
instead (the OpenVIReference is polymorphic) with only the name of the vi in
it (e.g. vi1.vi).
There are some other isues that change when building an application. Most of
them are paths that change, and references that fail to open because of
them.
Regards,
Wiebe.
"cpuwzd" wrote in message
news:[email protected]...
> I have created a large application that is split between VB 6 and LV
> 6.1. The LabVIEW portion runs in the background, except that the VB
> portion can request that a LabVIEW user interface be presented on
> demand. Any time after this LabVIEW user interface has been opened
> and closed, opening and closing another application (or even just
> hiding a top-level window in another application) will cause LabVIEW
> to close, taking my background processing with it.
>
> If the LabVIEW code is running as source code, LabVIEW prompts me
> before closing. However, when the LabVIEW code is running as an
> executable (.exe), the executable closes without prompting in this
> circumstance.
>
> The scenario can be reproduced with a standard LabVIEW sample program.
> Proceed as follows:
>
> 1) Open VBToLV.vbp (the example program distributed with LabVIEW 6.1).
> 2) Start the VB program running.
> 3) Press the Launch LabVIEW button on the user interface of the VB
> program.
> 4) Enter an expression in the text box provided.
> 5) Select Display VI Front Panel.
> 6) Press the Run VI button.
> 7) Close the VI front panel by clicking its "X" button.
> 8) Open any handy application, such as Windows Explorer or Notepad.
> 9) Close this most-recently-opened program.
> 10) The LabVIEW Exit screen appears.
> 11) Exit LabVIEW.
> 12) Press the Run VI button.
> 13) An error occurs because LabVIEW has closed.
>
> If the LabVIEW code had been built into an executable and called
> accordingly, there would have been no LabVIEW exit screen. The
> executable would have just exited silently.
>
> This is not the way a COM server is supposed to behave. The VB
> program is still holding a valid reference to the server and it should
> remain open.
>
> It appears that LabVIEW is monitoring the total number of top-level
> windows that are open. I suppose that this is how LabVIEW figures out
> when its own FP windows have been closed. In this case, it doesn't
> notice that all of its windows have been closed until some other
> window closes.
>
> I have a work-around, but it's ugly.
>
> Ron Martin
> Balance Technology Inc.

Similar Messages

  • I installed iWork11 but the '09 versions of the software are still running--and the default. What do I need to do to get the '11 versions working?

    I installed iWork11 but the '09 versions of the software are still running--and the default. What do I need to do to get the '11 versions working?

    It's very simple. If you want to use iPhoto, just let it manage things as it does. Other than that: Export from iPhoto and delete the image from iPhoto. That will remove the master and all versions.
    If space is an issue... use an external disk.
    Don't change anything in the iPhoto Library Folder via the Finder or any other application. iPhoto depends on the structure as well as the contents of this folder. Moving things, renaming things, deleting them or otherwise making changes will prevent iPhoto from working and could even cause you to damage or lose your photos.
    Regards
    TD

  • Just updated to 8 & now I can't open any web pages & firefox is still running in the background after browser was closed. I uninstalled and reinstalled as well as disabled add-ons and plugins nothing has changed, can I downgrade back to on older version?

    Just updated to 8 & now I can not open any web pages as well as firefox will not close out, it still running in the background after browser was closed. I uninstalled and reinstalled as well as disabled add-ons and plugins nothing has changed, can I downgrade back to on older version?

    See "Hang at exit":
    *http://kb.mozillazine.org/Firefox_hangs
    See "Firefox hangs when you quit it":
    *https://support.mozilla.com/kb/Firefox+hangs
    A possible cause is security software (firewall) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
    See:
    *https://support.mozilla.com/kb/Server+not+found
    *https://support.mozilla.com/kb/Firewalls

  • My iMac 27inch screen keeps going black but everything is still running in the background? please help

          My iMac 27inch screen keeps going black but everything is still running in the background? please help. I have read that apple are recalling 27inch iMacs....

    Hello @DesCherryBomb,
    I understand that you are having issues with your HP 2310m monitor going blank and/or flickering. I am providing you with some steps you can try below:
    Step 1. Unplug the power cord from the back of the monitor and the wall
    Step 2. Hold the power button down for at least one minute
    Step 3. Plug the power cord back into the monitor and then into the wall outlet (not a power bar or surge protector)
    Step 4. Press the Menu button on the monitor
    Step 5. Navigate to the Factory Reset option and select it
    If the above steps did not resolve your issue you can try the monitor on a computer or other device to see if the issue persists. Please call our technical support at 800-474-6836. If you live outside the US/Canada Region, please click the link below to get the support number for your region. http://www8.hp.com/us/en/contact-hp/ww-phone-assist.html
    Thank you for posting on the HP Forums. Have a great day!
    Please click the "Thumbs Up" on the bottom right of this post to say thank you if you appreciate the support I provide!
    Also be sure to mark my post as “Accept as Solution" if you feel my post solved your issue, it will help others who face the same challenge find the same solution.
    Dunidar
    I work on behalf of HP
    Find out a bit more about me by checking out my profile!
    "Customers don’t expect you to be perfect. They do expect you to fix things when they go wrong." ~ Donald Porter

  • Why does my iMac display keep shutting off?  Computer still running in the background.  I've tried unplugging and restarting, to no avail.

    Why does my iMac display keep shutting off?  Computer still running in the background.  I've tried unplugging and restarting, to no avail.    The computer is well out of warranty - about 7-8 years old, running 10.6.8

    Checked.... the settings had not been inadvertently changed, but I did move the scroll and reset them back to the original.   Hasn't shut off again.... yet.   Will re-post with follow-up one way or the other.   Thanks.

  • Are Apps Running In The Background All The Time?

    are apps always running in the background or is just double pressing the home button just a fast way to switch to what u were doing like texting or phone or something?
    cause ill notice i lot of icons down there lol and i hope not all those are running in the background cause i could see that killing the **** outa my battery -_-

    ... and here's an excellent thread explaining all the details:
    http://discussions.apple.com/thread.jspa?threadID=2479111&tstart=120

  • Should i let Main() exit while worker threads are still running?

    what is the Java Best Programming Practices for the issue of having the
    public static void main(String[] args) { ... }exit before the worker Threads that is starts exit?
    letting main() exit first, or making it wait, has no practical difference.
    yet, when others look at my code, what should it look like?
    should i thread.join() on all worker threads, before main() exits?
    imo: it appears to be bad style to let the main() exit while my session with the jvm is, essentially, still running.
    yet, it is extra code that is not necessary.

    Strike that. Reverse it.
    i.e.
    >
    1) Have main join the threads, and comment that you're doing so simply to preserve the notion of main as the umbrella for the program.
    2) Make the threads daemons, and comment at the end of main that the daemon threads, and hence the program, may still run after main has completed.
    >
    should instead say:
    1) Make the threads daemons, and have main join the threads, and comment that you're doing so simply to preserve the notion of main as the umbrella for the program.
    2) Make the threads non-daemons (the default), and comment at the end of main that the non-daemon threads, and hence the program, may still run after main has completed.
    Edited by: jverd on Oct 21, 2008 9:27 AM

  • Labview 8.5 vi still running in the Background

    I am using an old legacy system that is using Labview 8.5. When I shutdown labview, I get the message "Closing the project will abort some running VIs".  My question is how do I see what VIs are running?  It seems that I have an open reference somewhere, but I am having a really hard time tracking it down. 
    Basically, all VIs called are using the run VI node, so it is really hard to follow the code and see what is open at any given time.  Any help would be appreciated.  Thanks

    The memory profiler (Tools -> Profile -> Performance and Memory) will list all the VIs in memory, which should give you a starting point to track down which one is still running.
    MC

  • VLC still running in the background (~200% CPU)

    Hello,
    I noticed that my laptop was getting really hot so I checked the processes running. I found out that a VLC process was still running and using weirdly about 200% of the CPU... I couldn't kill it and had to restart. Any clue about how this could happen and how I can solve it?

    To start it I just opened a video file, to kill it, alt+f4. Then maybe an hour later I found out it was still running. It is not the first time that this happens with VLC. If I remember well I had the same problem using Linux Mint 14. I'll try to see if in some way I can repeat the problem.

  • Firefox runs in the background. No window. Tried re-install, new version etc. Still runs in the background. No display. I can quit, that's all...

    MacOS X 10.5.8. I launch Firefox.No window opens. I thought my firewall was blocking it so it wouldn't show a window when online.I fixed this.Still no Firefox's display. I upgraded to Firefox 5. Same issue there. Ready to move to Chrome, fed up now. Can't find what's wrong nor where the key to solve this is hidden (code somewhere..). Thank you for any help//

    this link you offered says: "can't find page"
    Ninite, as it started "run", then got an error: An error occurred. The certificate authority is invalid or incorrect [0x80072f0d] ; ; 216
    any other ideas ?
    Any chance other browsers don't let me download Mozilla ? had if for years, went to update it, then uninstalled it, now neither Google Chrome or Internet Explorer will let me download it. Or maybe it is just my laptop, running on Windows 7 ? ? ? ? ? ?

  • After I closed Firefox it seems to be still running in the background.

    So it is said if I trie to open it again later. I have to restart the PC, to be able to open it up again. Then the system seems to close down Firefox before restarting.

    See "Hang at exit":
    * http://kb.mozillazine.org/Firefox_hangs
    * [[Firefox hangs]]

  • Is there a way to keep apps from running in the background?

    I just updated to an Iphone 6, with the latest version of IOS.  It's a great product, but for me there is one annoyance.  There are times when my memory gets low.  I find out that it's the apps that are running in the background.  I personally don't use this.  All it does is hog memory.  Then, to close the apps, you have to close each one individually.  I forgot how many apps I have open, I'm of the mindset that when I close the app, that it's "really" closed, not still running in the background.  It would be nice if there was a way to disable this function.  It doesn't seem to serve a purpose for me in the way I use the Iphone.  I just "cleaned up my list of "behind the scenes apps" and I had about 20.  It gets frustrating to have to go to each one to close it.  Any comments or suggestions?

    Some things that might help:
    1. Only the most recently used apps actually occupy memory (used to be the most recent 4, but may have changed in the latest iPhones). After 4 (or so), IOS writes them out of active memory, as it does for even the latest 4 if there's no activity for a long time. So the business of closing all the open apps, apart from the most recent ones doesn't make a difference. Tis article has a good explanation:
    http://www.speirs.org/blog/2012/1/2/misconceptions-about-ios-multitasking.html
    2. There are settings about background app activity that might help:
    - Settings, General, Background App Refresh controls which apps can update their data in the background
    - Settings, Notifications controls which apps can tell you things, which they have to wake up to do.
    - Settings, Privacy, Location Services controls which apps monitor your location - another activity that uses resources
    Hope some of that helps

  • Process of Adobe Reader XI, is running in the Background, after closing.

    Hi,
    when I close the Adobe Reader XI, the Process is still running in the Background of my System. The Process needs a lot of CPU an after some moment my System is slowing down rapidly.
    Windows 8 (64-bit)
    Adobe Reader 11.
    What's to do?
    Greetings

    Same exact same situation happened to me with Windows 8 64 bit, Adobe XI .
    the CPOU is slowing down and is heated. the fans s running all the time. the only solution was for me to end the processes from the taks bars (one process per adobe file open !!!)
    somethign is definitely wrong; but don't know if it is Windows 8 or Adobe; I thing it is Adobe issue.

  • After installing zone Alarm extreme 10, firefox.exe 32 stays running in the background after closing, making it not possible to open it again.

    After installing the latest Zone Alarm Extreme v10, on windows 7 x64, when I close firefox, the window closes but firefox.exe 32 remains running in the background, which makes that when I want to open firefox again, after about a minute I get the error that an instance of firefox is still running. I go to task manager and end task of firefox.exe 32 and then open firefox again.
    This is now happening regularly.

    This seemed to come out of the blue, very much as described by anima42. I also am a Ubuntu 10.04 user. I have pondered on the first reply above, and though I don't, and didn't, use Tabberwocky, I was using Tab Mix Plus. Having removed this, the problem seems to have gone away. Another possible clue as to what went wrong: I use a constant Firefox profile located in my home directory. I dabbled with Ubuntu 11.04 a week or so ago, which runs (I think) a more updated Firefox. This Firefox was operating on my default profile, as you would. It may have broken something so it now doesn't play nicely with the 10.04 setup. Just surmising.

  • Firefox is running in the background, but the process can't be ended using the task manager?

    The program wouldn't open because it was apparently still running in the background, so I restarted a few times which didn't help. Then I tried using the task manager to end the process but that didn't work either. Then opened the command prompt and used taskkill, then pskill (using the PID number) but neither worked. The problem wasn't with how I was using these commands as they could close any other program I had running, just not firefox.exe*32. Any ideas?

    Try:
    *http://kb.mozillazine.org/Firefox.exe_always_open

Maybe you are looking for