Vi running in the background

Hi,
I try to write a VI running in the background -- but it doesn't work properly.
The VI is supposed to do the following:
hide the panel
write 1st time (actual time) to c:\temp\wtft.txt
wait 5 sec
write 2nd time (actual time) to c:\temp\wtft.txt
show the panel
wait 1 sec (just to see the panel)
exit
The hiding and exiting are easily adjustable using booleans for testing purposes. The front panel is completely empty.
Everything works as expected in the development system. But it doesn't after building an application. When running as application, the 2nd time won't be written to the text file if the panel is hidden. As far as I underst
and that's because the VI is terminated after the panel is closed. But I have a reference to the VI opened and I just close it after showing the panel again.
Can someone give me a hint what I'm doing wrong?
The VI in question is attached. We're running LabView 6.1 in Windows 2000.
Thanks,
Carsten
Attachments:
wtft.zip ‏21 KB

A built application must always have one window visible, otherwise the application terminates, having a reference open does not help.
Opening a reference to avoid a VI from terminating is useful e.g. if you dynamically load a VI using an invoke node and the wait until finished set to false (if you close the reference the VI will terminate...the trick is to make it open a reference to itself prior to closing the reference in the caller). But again - the application must always have one window visible. That window can be minimized and/or moved off-screen, but not closed.
MTO

Similar Messages

  • How do I find out what applications are running in the background

    I have a 2008 iMac with 2GB memory.  How do I find out what programs are running in the background?  I am going to buy a new iMac before the end of the year to replace this one.  When I looked at Activity Monitor it shows 1.8Gb used but doesn't tell all the programs running.

    open activity monitor [if it doesnt launch click winders>Activity Monitor]. then it'll show all proceses

  • Adobe Bridge not running in the background

    I have bridge setup to load and run in the background when I start windows.  However it doesn't run in the background but launches and runs as normal.the icon does not load in the control panel as does other programs that load and run in the background. Running a 64bit windows 7 machine

    Ashutosh.Nigam wrote:
    If you want to  start Br at login, Follow below mentioned steps:
    In Bridge , choose Edit > Preferences (for Windows) or Adobe Bridge > Preferences (for Mac OS).
    Choose Advanced.
    Select Start Bridge At Login.
    You can disable this option at any time, Hope this helps.
    I don't have CC but others say the standard option is not there.  Can you confirm it is?

  • When I click on a new link, it opens a whole new firefox instead of using my default which is running in the background

    I have firefox as my default browser. Anytime I click on an email or search for something, instead of opening my default browser, firefox loads a new firefox page. It is a blank page just as if I had never had one. It has nothing on it except how you would start out before you set up your tabs and history etc. My default firefox is still there running in the background but I must click on it and manually put in the link I was trying to open.
    Any suggestions.

    Some added toolbar and anti-virus add-ons are known to cause
    Firefox issues. '''Disable All of them.'''
    Start '''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Firefox in Safe Mode]''' {web Link} by holding down the '''<Shift ''(Mac Options)'' >''' key, and then starting Firefox. Is the problem still there?

  • Can the width of a report that has been run in the background be increased?

    Hello Experts,
    How can I increase the width of a report that I have run in the background so that it does not wrap text to the next line?
    I have been running the same HR report successfully in the background for many months.  Today I ran it with the same parameters that I've always used and when I retrieve it from my Own Job Spool - System | Own Spool Request | Display Contents the last field is wrapped to the next line.
    Thanks.
    Regards,
    Jeanette

    Jeanette,
    Thereu2019s another possibility if Tedu2019s suggestion doesnu2019t work. When you look at your spool requests, thereu2019s an icon on the toolbar next to the eyeglasses that looks like a yellow rectangular callout. Itu2019s called u201CDisplay in Maximum Widthu201D. Select the Spool no. to display and then press this icon. Shift + F4 is the shortcut.
    Regards,
    Howard

  • The application does not use the  screen and run in the background

    Hi
    I have downloaded a package of j2me Midlet
    from [link] here [link]
    and try to reuse the code
    but I get the following error when running the code:-
    The application does not use the screen and run in the background
    I think the error into one of these two classes
    package main;
    import javax.microedition.midlet.*;
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.media.Manager;
    import javax.microedition.media.MediaException;
    import javax.microedition.media.Player;
    import java.io.IOException;
    import java.io.InputStream;
    public class MainMidlet extends MIDlet implements CommandListener {
        private SSGameCanvas gameCanvas ;
        private Command exitCommand ;
        private Player player = null;
        public void startApp() {
      try {
           //   create new game thread
              gameCanvas = new SSGameCanvas();
              gameCanvas.start(); // start game thread
              exitCommand = new Command("Exit",Command.EXIT,1);
              gameCanvas.addCommand(exitCommand);
              gameCanvas.setCommandListener(this);
                Display.getDisplay(this).setCurrent(gameCanvas);
       catch (java.io.IOException e)
                e.printStackTrace();
            try {
                // start sounds
                InputStream in = getClass().getResourceAsStream("/resource/startfly.wav");
                player = Manager.createPlayer(in,"audio/x-wav");
                player.setLoopCount(1);
                player.start();
            catch (MediaException ex)
                ex.printStackTrace();
             catch (IOException ex)
                ex.printStackTrace();
        public void pauseApp() {
        public void destroyApp(boolean unconditional) {
            if (player != null) {
                player.close();
            System.gc();
      public void commandAction(Command command, Displayable displayable) {
           if (command == exitCommand)
                 destroyApp(true);
                 notifyDestroyed();
    package main;
    import java.io.IOException;
    import javax.microedition.lcdui.*;
    import javax.microedition.lcdui.game.*;
    public class SSGameCanvas extends GameCanvas implements Runnable {
        protected GameManager gameManager;
        protected boolean running;
        private int tick=0;
        private static int WIDTH;
        private static int HEIGHT;
        private int mDelay = 20;
        Form mainForm;
        Display display;
        //private int MaxTime;
        public SSGameCanvas() throws IOException{
            super(true);
            gameManager = new GameManager(5,5,getHeight()-10,getWidth()-10,this);
        public void start() {
                this.running = true;
                Thread t = new Thread(this);
                t.start();
        public void stop() {
            running = false;
        public void render(Graphics g) {
            WIDTH = getWidth();
            HEIGHT = getHeight();
            // Clear the Canvas.
            g.setColor(0, 0, 50);
            g.fillRect(0,0,WIDTH-1,HEIGHT-1);
            // draw border
            g.setColor(200,0,0);
            g.drawRect(0,0,WIDTH-1,HEIGHT-1);
            // draw game canvas
            gameManager.paint(g);
        public void run() {
            while (running) {
                // draw graphics
                render(getGraphics());
                // advance to next graphics
                advance(tick++);
                // display
                flushGraphics();
                try { Thread.sleep(mDelay); }
                catch (InterruptedException ie) {}
        public void advance(int ticks) {
            // advance to next game canvas
            gameManager.advance(ticks);
            this.paint(getGraphics());
    }Edited by: VANPERSIE on Jul 10, 2012 12:26 PM

    Hi Andi,
    Thanks for your reply.
    Yes, I have waited for a while and the result doesn't change.
    The Porblem here is the application is seen started in visual administrator.Only restart brings up the page back.
    Can you please suggest anything.
    Thanks and regards
    Nagaraj

  • How can I delete the apps that run in the background in iOS 7

    HOw can I delete the apps running I the background in the new Ios7. Earlier all that I had to do was to press continuously and then could delete when the   Mark would appear. now I am unable to do it.
    AAlso, I am unable to save a photograph as a wall paper.

    Thanks so much. This solved my problem.
    Can you tell me how to save a photograph as a wall paper on the new IOS 7
    Thanks

  • HT1365 Hi can anyone help with this issue regarding my wireless magic mouse? When im on google chrome and scrolling down the page i always have youtube running in the background but the audio cuts/spits/pops can anyone help me with this?

    Hi can anyone help with this issue regarding my wireless magic mouse? When im on google chrome and scrolling down the page i always have youtube running in the background but the audio cuts/spits/pops can anyone help me with this?

    The figures you mention only make sense on your intranet.  Are you still using the same wireless router.  The verizon one is somewhat limited as far as max wireless-n performace.  For one thing it only has a 2.4 radio.   I like many people who wanted wireless-n performance before they even added a wireless-n gigabit router, have my own handling my wireless-n network.

  • Looking for a drum loop app that will run in the background. What are you using?

    Looking for a drum loop app that will run in the background. Suggestions? What are you using? I tried Loopseque and I like it, but I can't make it run once I switch apps. Help please.

        That's definitely strange, kzmidge. I want a working phone in your hands though. I noticed you mentioned you received the suggestion to complete a reset. Did you already do that? Is it working again? Are you receiving an error message?
    If you hesitated a little longer to complete the reset, you can try to place your phone into Safe Mode http://vz.to/rxg0ii and see if you can access mobile sites from your browser. This mode will stop 3rd party applications from running, so you won't be able to use the apps you mentioned but we may be able to narrow down the trouble in Safe Mode. If the mobile sites work, that means the trouble may be in a recently downloaded application and you may be able to avoid the reset my uninstalling some of your more recently installed applications. If it's still giving you trouble, the reset http://vz.to/18wzOCi is the next best step.
    JenniferH_VZW
    Follow us on Twitter www.twitter.com/vzwsupport

  • Page breaks appear in the spool output of report when run in the background

    Hi All,
    Report is using fm 'REUSE_ALV_GRID_DISPLAY' to display the report. parameters passed to this fm for display are :it_fieldcat,is_layout,it_events,t_outtab.
    Page breaks appear in the spool output when report is run in the background.These page breaks needs to be removed. When executed in the background, the excel extract should be the same as if pulling directly from the report itself.
    How to remove the page breaks in background?
    Thanks & Regards,
    Abhishek Singh

    Hi
    You can use the below code , which the reprt run in background. If you run the report in background thenyou need to use  'REUSE_ALV_LIST_DISPLAY'
    if sy-batch = ' '.
    call 'REUSE_ALV_GRID_DISPLAY'.
    else.
    call 'REUSE_ALV_LIST_DISPLAY'.
    endif.
    if you are using OO alv then write this code..
    CALL METHOD cl_gui_alv_grid=>offline
    RECEIVING e_offline = off.
    IF off IS INITIAL.
    CREATE OBJECT g_custom_container
    EXPORTING container_name = g_container.
    ENDIF.
    Regards

  • Can a java program be run in the background?

    Hi all,
    Can a java program be run in the background without the user being aware of it? I need to make a program that continuosly monitors a pc at regular intervals and runs at all time. It should be hidden(shouldn't display on the screen while running) from the user, and also, can it be run as a system file so that even if a user checks he/she would think of it as a system file?

    I'm the administrator of all the computers. Then as I said there are commercial applications that do that.
    Presumably you expect a problem now. And implementing an acceptable solution is going to take you months. Because not only need to 'hide' the application, you also need to set up all the monitoring and logging capability. And the first will require quite a bit of JNI work along with testing (in particular as it could interfer with existing applications on the users computers.)
    I need to
    install the software in all the machines and i want
    that the users who use the machine should not be able
    to close the program through the task manager. If the users have admin rights then they can terminate a windows service.
    And if they don't have admin rights then you can simply turn off the ability to install anything.
    I want
    to know what the resources of the computers are and
    that if anyone has added a resource to it or
    not(attaching a flash usb thumbdrive etc). Lots of JNI.

  • How do I turn off apps running in the background on iOS7?

    I just updated my iPhone 5 to iOS7.  How do I turn off apps running in the background? Double tapping the home button and turning each one off doesn't work on the updated iOS.

    Double click the Home button and "slide" the open apps 'UP" with your finger, they will disappear.

  • How do i turn off apps running in the background with the new upgrade?

    how do i turn off apps running in the background with the new upgrade?

    They changed it a bit, but you can still close apps. Double click the Home button to pull up the currently running apps. Side scroll over to the app you want to close, then swipe up on the app *window* (not the icon at the bottom).
    = L.I.

  • How do i turn off apps running in the background

    How do I stop apps from running in the background?

    Do you mean u have no idea what apps they are? You could try Activity Monitor, but be careful there that you won't close / quit apps which might be needed by your system..
    If you have some apps which startup in the background when logging in, you can find it in system preferences -> Users & Groups, select your user and then select the tab Login Items.

  • 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

  • HT3180 Ok, I got the Apple TV all hooked up. Im pretty handy and have a lot of experience putting electronics together, but this one has got me. I can not seem to get it to connect to my iTunes. Probably something running in the background.

    Having problems with Home Sharing with the WiFi. Can not seem to get the Apple TV to connect to my iTunes. Must be something running in the background of the router or laptop. Need help.

    Yes to all, however ive noticed when I turn on the itues Home Sharing, and it says it is on in the File pull down, it disapears from the Livrary pull down. I attempt to view my Library on my iPhone or iPad under the Remote app and it states i have no songs or content. Although it will let me mirror my device on the TV screen.

Maybe you are looking for