closing the window BACK to exec system

Hi, I used the exec.vi system to run a program, wait for the program to end and then run it again with slightly different input parameters. This occurred hundreds of times and works OK except sometimes the program crashes and the DOS window is just sitting there until you manually close.

To stop I want to detect how long the program will run for and if it is more than 5 minutes, force it to close.

Detection of how long the programme is for is not a problem, but I don't know how to force the window to close LabVIEW...

can anyone help?

Thank you

Philippe

Try:

Taskkill /f /im wmplayer.exe

Tags: NI Software

Similar Questions

  • Control arrays disappear when closing the window .uir

    Using LabWindows/CVI 2010, I created a program of simple test with a panel containing a couple of buttons push, three tumbleurs and three control LED. I can create arrays of controls containing the toggle switches and/or LEDs in the .uir editor and access in the program, but when I close the .uir editing window and reopen the .uir file, control arrays are gone from the .uir file and of course when I rebuild the program I can't access it. This happens if I leave LW/CVI entirely or if I just close the editor of .uir. If I explicitly the file .uir after creating tables, everything seems fine, but then when I close the .uir window I see an asterisk briefly appear in the tab of the file name, as if it is modify the file, and then re-register on the goal.

    I can duplicate this just creating one or two control panels and by closing the window. Sets disappear, even though I explicitly save the .uir file after I created them. Is there something I can do to prevent this?

    Thank you

    Brian

    Brian.

    It seems that your UIR may have have been saved for an earlier at some point.  If you open the UIR and look in the lower right corner, you say 'file UIR 2010'?  "Otherwise, you need to click on File ' Save *.uir as and save the UIR under a 2010 UIR.

    If you choose to save the IUR for an earlier version, CVI remembers this decision and always saves the IUR for than the previous version.  You will have to explicitly choose to save them for the current version.

    Let me know if this does not fix things for you-

    NickB

    National Instruments

  • I have a laptop broke the rocovery disk not good ahy, I need the windows vista disk operating system how do I get the same themes?

    I have a laptop broke the rocovery disk not good ahy, I need the windows vista disk operating system how do I get the same themes?

    If Windows Vista was preinstalled on your computer, contact the manufacturer of your computer for a replacement CD. If you purchased a retail version of Windows Vista, contact Microsoft.

    This article in the Microsoft Knowledge Base has the details: How to replace Microsoft software or hardware, order service packs and updates of product and replace product manuals . Boulder computer Maven
    Most Microsoft Valuable Professional

  • What is the printer that HP 7525 works with the windows 8.1 operating system?

    What is the printer HP 7525 Photo Smart works with the windows 8.1 operating system?

    Hi Alex7171,

    Yes it does, you can follow this link to download drivers

    http://h10025.www1.HP.com/ewfrf/wc/softwareCategory?cc=us&DLC=en&LC=en&product=5286643&I

  • I'm LR4 running on a pc. Control-Q does not close the program. (Sometimes it changes the selected color to b & w image.) I was closing the window by right-clicking on the LR icon in the taskbar and selecting "close window." Is - it really close the

    I'm LR4 running on a pc. Control-Q does not close the program. (Sometimes it changes the selected color to b & w image.) I was closing the window by right-clicking on the LR icon in the taskbar and selecting "close window." Is this really close the program? (It also changes an image n & b).

    -> Output file, or by clicking on the red X in the upper right, should work.

    CTRL-Q should work unless there is a Windows keyboard command that replaces it.

  • How to hide the command prompt window when using exec system

    Hello, I use the exec system VI to do some transfers of files for a LabVIEW application.  I'm afraid that the black white scroll text command prompt window that appears when exec system is called might scare users this LabVIEW application non-tech savy.  Is there a way to hide the command prompt window?

    Feed a REAL running reduced entry.

    Mike...

  • Trigger Javascript before closing the window of the browser of CP8

    I'm afraid that this is not possible, but here... any help would be amazing.

    We recently gave me some good advice on how to trigger a Javascript action in our LMS that the Captivate file plays in the framework.

    It works perfectly and on the last page triggers the Javascript code which send its use date back to the LMS and transfer the user to a page that allows them to evaluate the course.

    The code was as follows:

    top.code.closeSCOContent ();

    closeSCOContent() there's something written in our LMS.

    However the obvious problem occurs when a user closes the browser window just and for some reason our LMS doesn't save any bookmarking or any data.

    The only way, it seems to do it if this function is called.

    So using the window.onunload () or the DOFinish; is there a way I can edit any file in Captivate output to trigger this function when the browser is closed?

    Long shot I know, but currently the best that I got is get the course for this trigger as soon as it loads rather than close the window?

    Huge thanks in advance for any advice.

    Are you an edition in the format swf or html5?

    If the swf, you may have a widget send the info whaen a slide is entered. For HTML pages, you can do the same thing regisitering the event with the window.

    I can make you a widget for a small fee. Here's the code html5 (inserted in the head section):

  • Can I have Firefox ask before closing the window if I hit Ctrl-W by accident.

    When filling out forms in the browser I sometimes accidentally hit Ctrl-w to muscle memory. The ctrl-w is a function of writing in another program I use. When I hit Ctrl-w window close without warning and I can potentially use an hour of work.

    Is it possible to configure firefox, then it will appear a confirmation box when I click the Ctrl-w warning me that the browser window closes.

    It's a safety device great for touch typist who sometimes moves too fast.

    Thank you.

    I thing the warning appears only when you have 2 or more tabs open in the same window if the checkbox is checked in the Options (warn me when closing multiple tabs).

    With a single tab, I fear that it is not possible to be warned: in Firefox, CTRL + W closed the tab current, different from CTRL + SHIFT + W (or ALT + F4) to close the active window.

    If this shortcut is really a problem for you, you may replace it with an add-on like customizable shortcuts.

  • After playing games online, I closed the window and sees a piece of the game into my office window. It looks like a virus. What should I do?

    After playing games online, I closed the safari window but I can barely see the walkthrough of word written in my office. I changed my desktop to a solid color, so I can see it better. I also see the Netflix pause button and if I reduce the window as I type right now I see Select a community to Post To my office. Is this a virus? If yes what should I do to fix it?

    Thank you!

    Are you referring to the "ghost image" or "ghosting"?

    Avoiding persistence on Apple displays - Apple Support

  • TAB GROUPS die after closing the window, restoration of session does not apply and neither is history! I do not think that I have been warned!

    On leaving firefox, update, then restart, I lost the ability to restore sessions. I restored the Group of tabs in the past; It's different. My tab groups are lost forever and I don't remember even be warned about losing when the window is closed (as often happens and then I avoid close it.)

    I sync my tab groups, but she must have sync'd their disappearance because I lost. Tab groups really should have always been separate from the window (as a form of records) - I don't know why I found myself never adopt this powerful feature knowing how bad it has been supported. I had actually named groupings with 2dont reading lists etc... the year value of groups... and I shared it between devices...

    In fact, I watched the sessionstore.js file, it seemed ok - I do javascript professionally. I think I can close this because there seems to be a lack of functionality/design of browser that we can solve a problem. my other computer did the same thing with clamping my tab groups and the closure of the window... it's a "feature" not a bug. I thought that maybe someone knew something that I do not have as to why this is so wrong.

    I'll just have to live with attention restore or restore backups the sessionstore.js if for some reason, he gets lost. Including me accidentally close the window and press on enter without thinking (Yes, I get that I can restore; but the problem is that I wouldn't restore groups of tabs because they are so easily killed in multiple ways.)

  • How can I remove the Windows Equium A60 operating system

    How can I remove the Windows of my Equium A60 computer operating system?

    If you want to have the own pre-installed OS simply use sent recovery CD/DVDs. Before installing the OS launches the disk HARD integer will be deleted.

    If you have t n, use the facilities of Microsoft CD. You will find the option to format the existing partitions or even to delete the partitions.

  • I accidentally closed the window of my project and it will not re - open.

    I went into the Windows menu and select 'Project', but it shows me only a sandbox. I got dozens of bins and sequences, and now I can see none of them. I restart the software and hardware - same result. I really need my work in return. Help!

    Could need back up some files.

  • Install the Windows Server 2008 operating system on drive D:

    Hello

    I have a requirement to install Windows 2008 R2 operating system on drive D:. Please advise me if it is possible and how. Thank you.

    Kind regards

    Kamran7446

    Hello

    You can now create the D: Disk Manager partition and run the installation while Windows is running. Just point the partition D: and after installing, you can start the just installed Windows and remove and recreate the C: partition.

  • Newbie: Esc closed the window and does not return to the screen

    Hi all

    does anyone know a solution for this:

    This is my first application. I tried a view-Details-app. I started to change the uiExample available on blackberry.com. In the start.htm is now an onload Script that calls a Web service to get data and present them in a list (the view). When you click an item in the list a new site called detail.htm is open. I had trouble getting data from the Web service to this new site. So I created this new site via JavaScript/DOM, everything works fine, but when you are in the site detail and press the Esc key to close the current window you see not the previous window of the application as I'd expect, but you get the blackberry homescreen. And I suppose that my application is still running but not visible.

    Thank you for any suspicion.

    Concerning

    Andreas

    PS: Here are a few snippets:

    Start.htm


     
        
        
        
        
        
        
      Vorkommnisse
      
     
     

     
        


            

    VORKOMMNISSE


        

        

               

               

               

                

                

               

               

               

           



     

    Common.js

    addEventListener ('load', doLoad, false);

    function doLoad() {}
    document. Body.style.Height = screen.height + 'px ';
    }

    var xmlHttp = new XMLHttpRequest();

    function callWebService() {}
    var url = "http://10.1.1.107/webservice/ws.nsf/webservicevkn_small2?OpenWebService";

    XMLHTTP.open("get",URL,true) ('POST', url, true);
    xmlHttp.onreadystatechange = callbackFunction;
    xmlHttp.setRequestHeader ("Content-Type', ' text/xml");
     
    var xmlDaten =""
    "xmlDaten = xmlDaten +"\ http://www.w3.org/2001/XMLSchema-instance"container = \ 'http://www.w3.org/2001/XMLSchema \" xmlns:soapenv = \'http://schemas.xmlsoap.org/soap/envelope/ \"xmlns:tns = \" "urnefaultNamespace\" ">" "
    xmlDaten = xmlDaten + "".
    xmlDaten = xmlDaten + ""<>ANOM >ANOM > ""
    xmlDaten = xmlDaten + "
    "
    xmlDaten = xmlDaten + «»
     
    xmlHttp.send (xmlDaten);
    }

    function callbackFunction() {}
    If (xmlHttp.readyState! = 4)
    return;

    var xmlHttpRequest = xmlHttp;

    var result = xmlHttp.responseXML.documentElement;

    var vorkommnisse = result.getElementsByTagName ("RECORD");

    for (var i = 0; i)
    {
    createListItem (vorkommnisse [i], i);
    createListItem (vorkommnisse [i] Sublst.ChildNodes(1).ChildNodes(0) [10] .textContent, i);
    }

    }

    function createListItem (vorkommnis, ListItemIndex)
    {
    var obj = document.getElementById ("itemList");

    var newDiv = document.createElement ("div");
    newDiv.setAttribute ("class", "arrowList");
    newDiv.setAttribute ('x-blackberry-Focus "," true");
    newDiv.setAttribute ("onClick", "createDetailPage (" "+ ListItemIndex +" ");");
    newDiv.setAttribute ("onclick", "location.href =" detail.htm";");)
    var newSpan = document.createElement ('span');
    newSpan.setAttribute ("class", "arrowListText");

    var newImg = document.createElement ("img");
    newImg.setAttribute ("class", "arrow");
    newImg.setAttribute ("src", "images/arrow.png");

    var newText = document.createTextNode(vorkommnis.childNodes[10].textContent);

    newSpan.appendChild (newText);
    newDiv.appendChild (newSpan);
    newDiv.appendChild (newImg);

    obj.appendChild (newDiv);

    }

    function writeStatic (text)
    {
    document. Write (')
       
       
         
            
            
            
          
            
         

         
            


                

    VORKOMMNISSE - details


            

             

                

                       

                       

                       

                        

                        

                       

                       

                       

                   

               

         
       
    ');

    }

    function createDetailPage (index)
    {
    var result = xmlHttp.responseXML.documentElement;
    var vorkommnisse = result.getElementsByTagName ("RECORD");
    var vorkommnis = vorkommnisse [index];
     
    Labels var = new Array ("Meldungseingang:", "", "vom Vorkommnis:", "", "Linie/Kurs:", "Ort:", "Vorkommnis:", "direction:", "course of events:", "Bemerkung:", "Info:", "", "Bearbeiter :"))
     
    var generator = window.open (", 'detailPage');

    writeStatic (generator.document);
     
    Generator.document.Body.style.Height = screen.height + 'px ';
     
    var detailItemList = generator.document.getElementById ("detailItemList");
     
    First line... Anzeige
    {
     
    var theRow = generator.document.createElement ("div");
    theRow.setAttribute ("class", "line");
     
    var theRowLabel = generator.document.createElement ("div");
    theRowLabel.setAttribute ("class", "label");

    var theRowLabelText = generator.document.createTextNode(vorkommnis.childNodes[6].textContent);

    theRowLabel.appendChild (theRowLabelText);
    theRow.appendChild (theRowLabel);
     
    var theSeparator = generator.document.createElement ("div");
    theSeparator.setAttribute ('class', "listSeparator");

    detailItemList.appendChild (theRow);
    detailItemList.appendChild (theSeparator);
     
    }

    First line... Bearbeiter
    {
     
    var theRow = generator.document.createElement ("div");
    theRow.setAttribute ("class", "line");
     
    var theRowLabel = generator.document.createElement ("div");
    theRowLabel.setAttribute ("class", "label");

    var theRowLabelText = generator.document.createTextNode (vorkommnis.childNodes + labels [12] [12] .textContent);

    theRowLabel.appendChild (theRowLabelText);
    theRow.appendChild (theRowLabel);
     
    var theSeparator = generator.document.createElement ("div");
    theSeparator.setAttribute ('class', "listSeparator");

    detailItemList.appendChild (theRow);
    detailItemList.appendChild (theSeparator);
     
    }

    First line... Meldungseingang
    {
    var theRow = generator.document.createElement ("div");
    theRow.setAttribute ("class", "line");
     
    var theRowLabel = generator.document.createElement ("div");
    theRowLabel.setAttribute ("class", "label");

    var theRowLabelText = generator.document.createTextNode (vorkommnis.childNodes + labels [0] [0] .textContent + "" + vorkommnis.childNodes [1] .textContent + "Uhr").

    theRowLabel.appendChild (theRowLabelText);
    theRow.appendChild (theRowLabel);
     
    var theSeparator = generator.document.createElement ("div");
    theSeparator.setAttribute ('class', "listSeparator");

    detailItemList.appendChild (theRow);
    detailItemList.appendChild (theSeparator);
    }
     
    First line... Vom Vorkommnis
    {
    var theRow = generator.document.createElement ("div");
    theRow.setAttribute ("class", "line");
     
    var theRowLabel = generator.document.createElement ("div");
    theRowLabel.setAttribute ("class", "label");

    var theRowLabelText = generator.document.createTextNode (vorkommnis.childNodes + labels [2] [2] .textContent + "" + vorkommnis.childNodes [3] .textContent + "Uhr").

    theRowLabel.appendChild (theRowLabelText);
    theRow.appendChild (theRowLabel);
     
    var theSeparator = generator.document.createElement ("div");
    theSeparator.setAttribute ('class', "listSeparator");

    detailItemList.appendChild (theRow);
    detailItemList.appendChild (theSeparator);
    }

    First line... Linie/Kurs
    {
     
    var theRow = generator.document.createElement ("div");
    theRow.setAttribute ("class", "line");
     
    var theRowLabel = generator.document.createElement ("div");
    theRowLabel.setAttribute ("class", "label");

    var theRowLabelText = generator.document.createTextNode (vorkommnis.childNodes + labels [4] [4] .textContent);

    theRowLabel.appendChild (theRowLabelText);
    theRow.appendChild (theRowLabel);
     
    var theSeparator = generator.document.createElement ("div");
    theSeparator.setAttribute ('class', "listSeparator");

    detailItemList.appendChild (theRow);
    detailItemList.appendChild (theSeparator);
     
    }

    First line... Direction
    {
     
    var theRow = generator.document.createElement ("div");
    theRow.setAttribute ("class", "line");
     
    var theRowLabel = generator.document.createElement ("div");
    theRowLabel.setAttribute ("class", "label");

    var theRowLabelText = generator.document.createTextNode (vorkommnis.childNodes + labels [7] [7] .textContent);

    theRowLabel.appendChild (theRowLabelText);
    theRow.appendChild (theRowLabel);
     
    var theSeparator = generator.document.createElement ("div");
    theSeparator.setAttribute ('class', "listSeparator");

    detailItemList.appendChild (theRow);
    detailItemList.appendChild (theSeparator);
     
    }

    First line... ORT
    {
     
    var theRow = generator.document.createElement ("div");
    theRow.setAttribute ("class", "line");
     
    var theRowLabel = generator.document.createElement ("div");
    theRowLabel.setAttribute ("class", "label");

    var theRowLabelText = generator.document.createTextNode (vorkommnis.childNodes + labels [5] [5] .textContent);

    theRowLabel.appendChild (theRowLabelText);
    theRow.appendChild (theRowLabel);
     
    var theSeparator = generator.document.createElement ("div");
    theSeparator.setAttribute ('class', "listSeparator");

    detailItemList.appendChild (theRow);
    detailItemList.appendChild (theSeparator);
     
    }

    First line... Course of events
    {
     
    var theRow = generator.document.createElement ("div");
    theRow.setAttribute ("class", "line");
     
    var theRowLabel = generator.document.createElement ("div");
    theRowLabel.setAttribute ("class", "label");

    var theRowLabelText = generator.document.createTextNode (Labels [8]);

    theRowLabel.appendChild (theRowLabelText);
    theRow.appendChild (theRowLabel);
     
    var theSeparator = generator.document.createElement ("div");
    theSeparator.setAttribute ('class', "listSeparator");

    detailItemList.appendChild (theRow);
     
    }

    {
      
    var theRow = generator.document.createElement ("div");
    theRow.setAttribute ("class", "line");
      
    var theRowLabel = generator.document.createElement ("div");
    theRowLabel.setAttribute ("class", "details");

    var theRowLabelText = generator.document.createTextNode(vorkommnis.childNodes[8].textContent);

    theRowLabel.appendChild (theRowLabelText);
    theRow.appendChild (theRowLabel);
      
    var theSeparator = generator.document.createElement ("div");
    theSeparator.setAttribute ('class', "listSeparator");

    detailItemList.appendChild (theRow);
    detailItemList.appendChild (theSeparator);
      
    }

    First line... Bemerkung
    {
     
    var theRow = generator.document.createElement ("div");
    theRow.setAttribute ("class", "line");
     
    var theRowLabel = generator.document.createElement ("div");
    theRowLabel.setAttribute ("class", "label");

    var theRowLabelText = generator.document.createTextNode (Labels [9]);

    theRowLabel.appendChild (theRowLabelText);
    theRow.appendChild (theRowLabel);
     
    var theSeparator = generator.document.createElement ("div");
    theSeparator.setAttribute ('class', "listSeparator");

    detailItemList.appendChild (theRow);
     
    }

    {
      
    var theRow = generator.document.createElement ("div");
    theRow.setAttribute ("class", "line");
      
    var theRowLabel = generator.document.createElement ("div");
    theRowLabel.setAttribute ("class", "details");

    var theRowLabelText = generator.document.createTextNode(vorkommnis.childNodes[9].textContent);

    theRowLabel.appendChild (theRowLabelText);
    theRow.appendChild (theRowLabel);
      
    var theSeparator = generator.document.createElement ("div");
    theSeparator.setAttribute ('class', "listSeparator");

    detailItemList.appendChild (theRow);
    detailItemList.appendChild (theSeparator);
      
    }

    Generator.document.Close ();

    }

    Oh. Found.

    History.back() () does not work but history.go("local:///index.htm") works very well for me.

    Thank you all for listening to my monologue...

    Concerning

    Andreas

  • Impossible to use Ctrl + Alt + Delete key combination on the Windows Server 2008 operating system

    When you use Windows Server 2008, it does not recognize the function "CTL + ALT + DEL" to open a session; It works very well with Windows 2003 and Linux, but not with Windows 2008. It is connected to OmniView SMB F1DP108A using F1DP101

    Hello

    Your question of Windows is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the HE public Pro on TechNet. Please post your request in the Forum of networking Windows 2008. It is a forum dedicated to solve problems. Please see the link below.

    Windows IT Pro Forum 2008: http://social.technet.microsoft.com/Forums/en-US/windowsserver2008r2networking/threads

    Kind regards.

Maybe you are looking for

  • 4070CDT satellite will not start up - BSOD appears

    I have an old Toshiba Satellite 4070CDT.After you have filled the password and of meadows, enter only a blue screen is visible, and nothing else works.Start in "Safe Mode" is not an option, it will also not work. Anyone have an idea what is wrong?

  • Beats Audio hp pavilion dv7, how to enable it? got windows 7 Home premium

    I have turned it on before randomly and can not repeat how I did before, the best quality when its is better for my mixer, so if you could help me out thanks

  • In the event of failure to start / HP 8510w

    [Portable HP 8510w with P/N KE186ET #ABE running on Win XP Pro SP3 and only that - not dual boot or otherwise tweeked block starting on this machine] Hi all! -my 1st post here. Laptop started to heat seriously about 30 months. The symptoms were: -fan

  • Get access with ActiveX Data

    Dear readers, I tried to change the example Access_ActiveX.vi OR for playback of a single column instead of an entire table. (http://digital.ni.com/public.nsf/3efedde43...cess_ActiveX.vi)I couldn't figuere how. I have a big enough database and it wou

  • I keep getting phone calls from people who say they are from Microsoft

    I keep getting calls calls from people saying that they are Microsoft saying I have complaints against me I send emails and threats scams is a call oh yes they leave no phone number