Exec.vi "Wait until completion" system uses a lot of CPU. Help

I am writing an application that calls parallel instances of an external program. I have the code of work to run the EXE file with the Exec.vi system. When the completion up to wait entry is set to true on Exec.vi LabVIEW system uses all my CPU. The EXE I am running is an exe of low intensity, and if I don't wait until completion LabVIEW has no high CPU usage. It would be nice, but I have the code which needs the EXE to finish before moving. I'm doing something wrong? I could not find this behavior as a known issue, so I would like a mental health to make sure I'm not stupid fouls. I have attached a demo that recreates the question. The VI called the EXE with lance Notepad and then updates the text in Notepad. I am attaching the source code of the demo EXE as well.

Brandon.Baxter wrote:

Thanks Bob

LabVIEW sequentially launches 20 cases of "Idel_EXE.exe" who are getting a Notepad and returns information.

This description is exactly what asynchronous call and collect is supposed to manage.  'Call' treats only the controls, move the VI 'in' data you call.  The "wait on asynchronous Call" does the rest - if the called VI has done and wants to pass 'out' data, this function provides the values.  As I have indicated, if the called VI is still ongoing, wait for asynchronous can expire, return an error (which you can use as a signal 'Wait a little bit longer').

Bob Schor

Tags: NI Software

Similar Questions

  • Flash uses a lot of CPU

    I don't know when this started, but recently whenever I visit Web sites that use some or a lot of Flash, Firefox slows down completely. When I went in my task manager, I saw that FlashPlayerPlugin.exe was using a lot of CPU (109, 396 k to be exact). Actually, there are two open process. In the past I've never seen these before in Task Manager, but now it is a problem. Any ideas?

    Nevermind, I found a solution. It seems that there is a new feature implemented by Flash called Protected Mode. To disable it, you must go to C:\WINDOWS\Macromed\Flash then open a text called mms.cfg file and add the following text: ProtectedMode = 0. To disable.

  • Firefox using a lot of CPU (90% + sometimes)

    I use firefox version 26.0 on a Macbook Pro OS X 10.6.8 version and I run these http://i.imgur.com/Co4NlGQ.png and http://i.imgur.com/Co4NlGQ.png extensions. I'm also using these plugins http://i.imgur.com/ZO55Lmq and http://i.imgur.com/IapcvJY and I have disabled all plugins, and which has not helped because the CPU usage always fluctuated close to 10% all the way up to 100% usage.

    I checked to see if the plugins are up to date and I updated one of them, but the most recent update of Java Applet Plugin works only with Maverick, which I did not. QuickTime said it is not up-to-date, but when I checked the software update on my Mac, it says there is no update available.

    Image of the plugins I checked to see if they were updated http://i.imgur.com/fPuV8vD and http://i.imgur.com/7Uwp5vX and http://i.imgur.com/N0Cz9Tp http://i.imgur.com/6FIwVTv aaand.

    Here is a picture of my activity monitor (I got all plugins disabled here) http://i.imgur.com/j6xUudo . As you can see, the CPU usage is 99.6%, which is huge given only, I opened a webpage (reddit) and was not running videos and others. And here's a picture of my activity with more information http://imgur.com/zuY5iMu monitor. The real Mem can go all the way up to 2 GB, which is a bit worrying.

    I tried to reset Firefox, which did not help, I tried from FF in safe mode, which did not help, and I even tried to reinstall FF, that did not help. I also tried disabling "using hardware acceleration", restarted my computer, and the issue was not fixed. I used CCleaner to clear temporary files and other, but it won't do any good.

    I really want to be able to use Firefox, because I'm starting to be wary of Chrome, but if FF only use a lot of memory and CPU, I'm not sure that I can continue to use this browser.

    I feel I hit dead ends on everything I tried, so I'm starting to lose hope. Did someone help any idea or suggestion as to what I should try / do?

    I have never seen that, perhaps, simply a reset will fix all the problems.

    NOTE that RESET WILL NOT:

    • Delete bookmarks, saved passwords, Form Data, history, tabs open (if you use Firefox 25 and more).

    A discount to ZERO will BE:

    • Delete the Addons, Custom Prefs, Configurations of toolbar, search engine settings

    More on reset (and how to achieve it) can be found here.

    If you want to be safer, you can save your profile (its likely will not be necessary)

  • What is superfetch? Its in my sTask window manager and he uses a lot of CPU power... .do I need it and what is?

    The program is placed in my Windows Task Manager and takes a lot of CPU power, and I wonder what use it perhaps can cause? my CPU usage was 100% and my antivirus uses only 5%.

    "Superfetch" and "The host Windows Services" take so much CPU power on i3, 3 gb Sony Vaio!

    SuperFetch is a Windows service that is designed to accelerate the launch of the app by preloading some applications based on your usage patterns. Tune-up blog has a good explanation of what it does.

    However, it should not be maxing out your CPU all the time. If it slows down your computer, you can try to disable it.

    To turn off:
    Open the Start Menu.
    Type "services" and press ENTER.
    SuperFetch. search in the list and right click > properties
    Set the startup type to disabled, and then click the Stop button to stop the service
    Click Ok

    You want to make sure that your antivirus software is up to date and your computer is clean.

  • Can a system using Windows XP Professional remotely help another system by using Windows 2000 Professional and control 2000 Professional computer to help solve the problems?

    Windows 2000 Professional has the capabilities of remote assistance?  My sisters husband just passed away and she doesn't know anything about computers.  All their documents, photos, ect..., my brother-in-law kept on the computer.  We live thousands of miles away and I can't fly to him.  Can I remotely access her computer and control it with mine that uses Windows XP Professional?  If the answer is "Yes", if you please tell me how to do it.

    Hello Jeff,.

    -Remote Office application do you use?

    You will be able to connect Windows XP computer to Windows 2000 via the remote desktop connection.

    I suggest you to check the following links for the desktop connection software remotely for Windows XP and Windows 2000.

    Windows XP Remote Desktop Connection software

    Configuration of remote desktop

  • HP Office Jet Pro 8600: Error Message: Scan in use - wait until the job is done

    Have used my scan function without problem since the purchase of machine and one year on Microsoft Windows 10.  Last week I did some scans - now this week when I try to use my scan function I get the following error message: Scanner is busy.  The scanner is currently in use.  Wait until your previous task is completed, and then try to scan the image.

    -There is no unfinished business and I can't find anywhere to clear the error or erase any task the scanner thinks he's working on.  Has anyone met and solved this problem?

    Thanks in advance for any help you can provide!

    ritao

    Hello

    Thank you for using the HP forum. You can try the following:

    Please download and run the HP Print and Scan Doctor (PSDR) tool to diagnose and solve your problem

    http://h20180.www2.HP.com/apps/NAV?h_pagetype=s-926&h_lang=en&h_client=s-h-E016-1&h_keyword=DG-PDU

    If this does not work, you need to maybe uninstall and reinstall the software COMPLETE features:

    Please uninstall and reinstall the software COMPLETE features, follow these steps:

    1. download and save the software COMPLETE features (do not install online)

    http://support.HP.com/us-en/drivers/selfservice/identify?q=+HP+Office+Jet+Pro+8600&tool=s-002#Z7_3054ICK0K8UDA0AQC11TA930O2

    Before you download, choose the right model, the operating system and complete software functionality.

    2 uninstall the software from your computer
    3. install the FULL feature software "saved".

    Here are some resources for you scan:

    Quick Guide for scanning needs

    http://h30434.www3.HP.com/T5/scanning-faxing-and-copying/quick-guide-to-your-scanning-needs/m-p/5625126

    Hope that helps!

  • This file is being processed. Please wait until processing is complete, to pass messages.

    When the check 6 accounts on a POP server, I get the message.

    This file is being processed. Please wait until processing is complete, to pass messages.

    This message started 14 2 6 accounts. I tried the suggestions at http://kb.mozillazine.org/Folder_being_processed and none of the suggestions correct the problem.

    Is there anything else I can try?

    Concerning
    AGMNS

    Look again at the anti-virus software, restart your computer in safe mode with network.

    This loads only the basics needed to start your computer while allowing Internet access. Click on your operating system for instructions on how to start in safe mode: Windows 8, Windows 7, Windows Vista, Windows XP, OSX

    Unfortunately, one of the main aspects of the anti-solutions antivirus is that they are almost impossible to actually 'pause' and fail almost exclusively to disable when they say they are and uninstall when you tell them.

  • Error when you try to burn a CD: Windows Media Player cannot burn the files. If the burner is busy, wait until the current task is complete. If necessary, check that the burner is connected properly and that you have installed the latest device driver

    Windows Media Player cannot burn the files. If the burner is busy, wait until the current task is complete. If necessary, check that the burner is connected properly and that you have installed the latest device driver. ???

    I just burn a CD with no problem at all.  Using the same type of CD, brand new, I tried to burn another CD and got this error message:

    Windows Media Player cannot burn the files. If the burner is busy, wait until the current task is complete. If necessary, check that the burner is connected properly and that you have installed the latest device driver.

    I close all programs running, restarted my computer, changed on the devices tab, the speed of burning... everything I know to do and all the things I've read in these forums, no luck... still get the exact same message.  No idea why my CD-writer has decided to stop working for me?

    Hi Cierrajade,

    1. you have any third-party DVD burning software installed on the computer?

    Method 1

    You can use the convenience store open playing and burning CDs, DVDs and Blu - ray discs built in Windows 7 and check to see if it helps you to trouble the CD plays the questions.

    For more information about how to open the resolution of problems in Windows 7, go to the link below and follow the steps.

    http://Windows.Microsoft.com/en-us/Windows7/open-the-playing-and-burning-CDs-DVDs-and-BluRay-discs-Troubleshooter

    Method 2

    If you have any third party CD\DVD software installed on the computer of engraving I suggest you uninstall and check back later if you can burn CDs with success.

    Disc burning: frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows7/disc-burning-frequently-asked-questions

    Method 3

    If the previous step fails, check if you can burn CDs using Windows Explorer

    Burn a CD or DVD in Windows Explorer

    http://Windows.Microsoft.com/en-us/Windows7/burn-a-CD-or-DVD-in-Windows-Explorer

    I hope this helps!

    Halima S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Thus, it has been some time since iOS 9.2.1 happened, but I still have not downloaded it. What is the consensus on this update, is it useful to download or should I wait until 9.3?

    Thus, it has been some time since iOS 9.2.1 happened, but I still have not downloaded it. What is the consensus on this update, is it useful to download or should I wait until 9.3?

    Yes.

    Yes/No - up to you.

  • Impossible to uninstall searchfly. Looks like the system froze. continue to be "Please wait until the current program.

    Try to uninstall Searchfly since yesterday. I continue to keep the message "Please wait until the current program is completed the uninstall". Help, please.

    Hello

    You are infected with malware.

    Follow this removal Guide:

    http://www.bleepingcomputer.com/forums/t/502760/how-to-get-rid-of-SF-searchfly/

    See you soon.

  • "Lexmark S600 Series is currently in use. Wait until the printer has finished printing and then uninstall. »

    Original title: Lexmark printer

    Hello

    Thank you for helping me to get my laptop working again - after contacting the Microsoft Community, Microsoft and my ISP, my email seems to work so I can get all my incoming messages.

    But I'm still having a problem printing.  I tried to uninstall the Lexmark S605 and I get the message error "series Lexmark S600 is currently in use.  Wait until the printer has finished printing and then uninstall. "I get this message even if the printer is turned off and unplugged.

    Before I tried to uninstall, I tried to update the drivers from the Lexmark site and it says the update was successful, but nothing prints.  Printer is no longer supported by Lexmark.  Wireless connects, but I have also tried to make it work using the USB connection.

    Printer print wireless from office, but not my laptop.

    Does anyone have an idea on how to uninstall the Lexmark program?

    Thank you

    Agnes

    Restart your computer and check the queue to printer in the Notification area, as suggested.

    Click on the printer

    Cancel all Documents

    For more information, visit the below mentioned link:

    http://Windows.Microsoft.com/en-us/Windows7/open-the-printer-Troubleshooter

    Printer problems: http://blogs.technet.com/b/markrussinovich/archive/2010/04/12/3324570.aspx

    Run the printer problems to: http://support.microsoft.com/gp/printing_problems?entrypoint=WHHT

    You can see the below mentioned links.

    http://Windows.Microsoft.com/en-us/Windows7/install-a-printer

    http://Windows.Microsoft.com/en-us/Windows7/find-and-install-printer-drivers

    http://Windows.Microsoft.com/en-us/Windows7/change-your-default-printer

    http://Windows.Microsoft.com/en-us/Windows7/printing-to-the-correct-printer

  • Windows Media Player cannot burn the files. If the burner is busy, wait until the current task is complete.

    Original title: CD corrupts and burn it

    When I go to burn a cd with the music on this topic in windows media player, it starts very well. When it gets to 70-80% it stops and a window opens with this message.

    "Windows Media Player cannot burn the files. If the burner is busy, wait until the current task is complete. If necessary, check that the burner is connected properly and that you have installed the latest device driver. »

    There is nothing burn but these files. I made sure there was nothing waiting to be burned. I closed all the other windows. I lowered the speed at which it burns. Nothing works I've looked up online. WMP is updated too.

    I can burn files very well. Photos and documents, I have a problem with. It cannot therefore the CD burner (not completely, anyway). I can listen to the songs on the CD where it suddenly stops.

    If anyone has had this problem, a solution would be greatly appreciated.

    Thank you

    Hi Cory,.

    This problem can also occur when your computer correctly detects the disc as a non-recordable device. Make sure that the registry key is set correctly for DVD player.

    CD - R or CD - RW drive is not recognized as a recordable device (valid also for Windows 7 steps)

    http://support.Microsoft.com/kb/316529/en-us

    Registry warning

    To do: Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:

    http://support.Microsoft.com/kb/322756/en-us

    How to back up and restore the registry in Windows

    I hope this helps.

  • Downloaded 4 fonts on my computer and all the files unpacked, but says I have to wait until Windows is finished with the files

    I downloaded 4 fonts on my computer and all of the decompressed files. However, my computer telling me I have to wait until Windows is finished with the files. I made sure all Windows programs are disabled, but he still repeats the message. Why is it so?

    Hi Clarissa Tan.

    1. What is the complete message you receive?
    2. Which site did you download the fonts on the computer?

    Method 1

    I suggest you to use the link below to download new fonts on the computer and check if it helps.

    To add a new font to your computer

    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/windows_fonts_addnew.mspx?mfr=true

    Download new fonts

    http://www.Microsoft.com/typography/fonts/

    Method 2

    It is possible that some third-party programs installed on the computer is causing the problem.

    I suggest that you set up the computer in a clean boot state and try to install new fonts, check if it helps.

    To help resolve the error and other messages, you can start Windows XP by using a minimal set of drivers and startup programs. This type of boot is known as a "clean boot". A clean boot helps eliminate software conflicts.

    See section to learn more about how to clean boot.

    How to configure Windows XP to start in a "clean boot" State

    http://support.Microsoft.com/kb/310353

    Reset the computer to start as usual

    When you are finished troubleshooting, follow these steps to reset the computer to start as usual:

    1. Click Start , and then click run.
    2. Type msconfig , and then click OK.
      The System Configuration utility dialog box appears.
    3. Click the general tab, click Normal Startup - load all device drivers and services , and then click OK.
    4. When you are prompted, click restart to restart the computer.
  • computer laptop vaio vgn-c290 and inability to restore the complete system

    I have a vaio laptop vgn-c290 (windows vista Home premium), using the f10 at the system startup key, tried to restore the complete system (c :) drive), but installing custom programs stopped at 55% 'installation click on dvd' feature. I waited about an hour to see any progress but nothing happened and I had to interrupt the installation process and windows not installed correctly. Please help me find a solution.

    Thank you very much.

    Hello

    Thanks for the post.

    Reset the BIOS:

    1. Turn on computer > F2 key.

    2. Then, reset the BIOS.

    3. Use the arrow keys on the keyboard to find the "Exit" button, and then select an option "Load optimized defaults or.

    4. Save the settings and exit the BIOS setup.

    If the problem persists, run the recovery:

    https://us.en.KB.Sony.com/app/answers/detail/A_ID/41931

    If the problem persists, contact Sony service team:

    http://eSupport.Sony.com/us/p/service.pl

    If my post answered your question, please mark it as an "accepted Solution".

  • How to make a VI execution wait until another ends

    Hi all

    I read the help of labview for synchronization functions, but I'm still confused on how to do this simple task. I have a labview program that connects to a DSP by serial (RS232). I use reading VISA and VISA write to read and write to the device. My goal is to first write, wait until the write is complete, then wait for, say, 100 ms (as he is assured that all data has been sent correctly) and then perform the read operation.

    At the moment I have VISA Write connected to VISA reading through the error out-to-error in thread. However, I'm not sure that they perform one after the other correctly, so I would like to implement a more robust synchronization.

    Thank you very much in advance


Maybe you are looking for