Executable Code Speed Vs. Developmen​t Environmen​t Code Speed under windows 7

Hi,
I implemented a "closed loop" type controller in Labview 2012 running on windows 7 to control a motor speed. In my code, I have a main loop that first measures data using a PCI daq card, and then processes the data, and then output data to another PCI daq card. The main loop is set to run at 100Hz. So, 100 times a second I read data, then process the data, then output new data. I am using the Input daq card timing to sync the main loop to 100Hz. When I run this code in the Labview development environment, it seems to run just fine and is able to keep up with the 100hz loop time with no apparent lag. but when I create an executable and run it (on the same machine), it initially appears to run at 100Hz but soon after that it starts to slow down to about 10hz or less. This is causing issues with my motor control. I set the priority of the application under windows task manager to real time (which is the highest option available) to force Windows to let it run as fast as possible but it didn't seem to help much. I compared using a while loop and a timed while loop and found that the while loop ran faster when creating the executable. Any thoughts on what to do to make the executable run faster and why does this happen?
Thanks

Can you post the code?
A wild guess is that there's some array growing wildly causing memory issues, and if you let the program run for a while longer it'll crash with out of memory error.
Is the program only supposed to feed data from one card to the other?
/Y
LabVIEW 8.2 - 2014
"Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
G# - Free award winning reference based OOP for LV

Similar Messages

  • Call VI in EXE but have it execute in Developmen​t Environmen​t not Run Time Engine

    I am working on building a palette editor for distribution of a reusable code library for my company (I know the VIPM does this very well already).  I have the code complete and am trying to create an executable that I can distribute that will call the code I wrote to update/create the palette .mnu files for the reuse library, which lives on the company network.  I am using the Palette Editing VI's and it seems as though they cannot be built into an executable.  So I wrote some code to dynamically call my palette modification code (I call it the Reuse Library Manager).  When my executable calls the Reuse Library Manager dynamically I get a broken run arrow on the Reuse Library Manager front panel and the following reasons for the broken arrow:
    It seems to me that the reason the Reuse Library Manager works when called in the development environment and not when called dynamically is because the dynamic call uses the run time engine for execution.  This made me think of how in the VIPM it opens LabVIEW while it installs packages.  If anyone knows, does the VIPM open LabVIEW in order to run the Palette Editing VI's or is it for another reason?  If it is this reason how can I force the dynamically called VI's to run in the development environment by opening LabVIEW programmatically from an executable that is running in the run time engine?
    Let me know where clarification is needed.
    Message Edited by jmcbee on 04-28-2009 10:00 AM
    CLA, CLED, CTD,CPI, LabVIEW Champion
    Platinum Alliance Partner
    Senior Engineer
    Using LV 2013, 2012
    Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.
    Attachments:
    Reuse.PNG ‏14 KB

    Hi jmcbee,
          In spite of years of using LV and building a resuable library of code, I've done very little with customizing the standard paletts, however,
    Many times when deploying a new distributable I've seen a dialog like what you posted.  In most cases the problem was solved by rebuilding distributable to include the missing VIs.  In one case I added the VI-lib to the target-platform and made-sure VI-lib was in distributable's VI search-path.
    There are two ways I know of to build distributables which include the VI-lib code,
    1) Include all VI-lib VIs when building the distributable
     - In LV 8x, uncheck "Exclude Files from VI lib" project-property.
     - In LV 7.1 it's possible but I don't remember how! (probably a post on it around here.)
     - This can add an enormous number of un-needed VIs (see this post.) 
    2) Re-write the VIs so that they are no-longer identified with VI-lib and get included "naturally".
     - Open each VI diagram, select-all, paste in new/untitled diagram.  In your case naming will be tricky, but it's doable.
     - This is a great advantage in 8x as it allows LLBs to be built with File\Save As\Create Hierarchy.
    In addition, here's a tool to call following "Open VI Reference" (if it returns an error.)  This VI open all broken children making it much easier to identify specific missing parts (typically VI-lib.)
    Luck/
    Cheers!
    "Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
    Attachments:
    Util.VI.OpenBroken.vi ‏57 KB

  • Running DS-5 armcc compiled code (PIC) under Windows EC 2013

    Hi All,
    i just wanted to know if it is generally (officially) supported to run code that is compiled via the armcc (5.03) from DS-5 under Windows Embedded Compact 2013. Or if this is discouraged (reasons?).
    The problem i have:
    The bootloader contains some code that must be run during Windows EC Startup. So this code is loaded from the Flash, copied to RAM (reserved and commited via VirtualAlloc and marked as executable) and then the functions are called via FunctionPointers.
    The code is compiled and linked as position independent and the stack base register is set accordingly before any function is called via pointer and reset when it returns.
    This works in about 9 out of 10 tests without problems. But sometimes i get all sort of exceptions (Data Abort, Prefetch Abort, Unknown Instruction, ...). Most (if not all) of the time they occur when the position independent code runs on one of the two
    cores.
    The code runs on an i.MX6DQ (dual).
    If i only enable one core, i can't reproduce the problem (i assume that multicore-handling and multithreading in WinEC 2013 Update 10 is really well tested and works without problems, so this can't be the real reason).
    I've thoroughly checked and debugged the code, i'm really sure there is no illegal access or other problem with the code itself.
    Could it be a problem to call code compiled via DS-5 armcc? I've compared assembler code that Visual Studio/Platform Builder generates with code that DS-5 generates (but i'm no assembler expert). I can't see any obvious special code that is added by Visual
    Studio/Platform Builder (i.e. that functions need) that is not there in the DS-5 code.
    Best Regards
    Sebastian

    So I think you could be able to image some code for ROM from another compiler and without knowledge of Windows CE. However, if the code will be called from Windows CE, this becomes more difficult requiring very careful isolation from the
    MMU state, processor state, kernel/user mode, etc. Code that works great when called from the bootloader might not work at all from Windows CE itself. The main problem with mixing code from different compilers is the object file format and conventions for
    entry and public names. Very unlikely that you'd be able to "link" code from any other compiler with PB-compiled code.
    You might think about the x86 image which can easily call BIOS from the bootloader but which can't even begin to call BIOS from CE itself. The problem isn't the compiler (which is different), but the operating environment differences and assumptions.
    Paul T.

  • Error in Tax code while creating a PO in T.code ME21n

    Hi,
    I am trying to create purchase Order, I am getting an error when while entering this
    Tax Code : v1
    Jurisdict. Code: RS14902
    The error is "Tax code v1 in procedure TAXBRJ is Invalid"
    How to rectify this error. Or
    What can be other way of entering the tax code and jurisdict code

    Hi,
    Go to the Table T007A, where you find the tax codes.
    Input & out put taxes are the tax types.
    In FTXP T.code give the tax code and  click on the
    Input tax codes are used for purchase cycle and out put taxes are for sales cycle. I Hope you have given the sales related tax code. Thats why system is giving the error message.
       In T007 Table give the proper input and get the details.
    Regards,

  • RE: Typekit...how do I move the code from an old account to my new account under the Creative Cloud?

    RE: Typekit...how do I move the code from an old account to my new account under the Creative Cloud? W/out (preferably) interuption to the website in question? Thanks!

    Hi Jesse,
    Please email us at [email protected] with:
    - your current Typekit account email address
    - the email address you use for Creative Cloud
    We will be able to help you make this change without disrupting your current font serving. 
    Thank you,
    -- liz

  • Getting exit code 7 when try to install adobe CS5.5 on windows 7 64bit Machine

    Getting exit code 7 when try to install adobe CS5.5 on windows 7 64bit Machine

    Errors "Exit Code: 6," "Exit Code: 7" | CS5, CS5.5
    Mylenium

  • How to purchase apps in App Store? When I am trying to buy those apps, it is asking for my card details. I have entered my debit card number and then it asked for 3 digit security code. I have entered cvv secure code but it is showing an invalid security

    How to purchase apps in App Store? When I am trying to buy those apps, it is asking for my card details. I have entered my debit card number and then it asked for 3 digit security code. I have entered cvv secure code but it is showing an invalid security

    Debit cards are no longer accepted in the iTunes Store, it seems. The current valid payment methods are listed here:
    http://support.apple.com/kb/HT5552
    You can try contacting the iTunes Store and asking if there is any way to use your card, but they probably will tell you that it's not possible.
    http://www.apple.com/emea/support/itunes/contact.html
    Using a debit card in any online service where it stores your card is a bad idea in any case since if someone gains access to your account in the service, they can quickly drain your bank account. Credit cards limit your liability, as do prepaid iTunes cards.
    Regards.

  • I was trying to pair my iPhone 5 with my car's bluetooth and it asked me for a 4 digit code, what is the 4 digit paring code?

    I was trying to pair my iPhone 5 with my car's bluetooth and it asked me for a 4 digit code, what is the 4 digit paring code for the iPhone 5?

    The code must be mentioned in the manual for the car read http://support.apple.com/kb/ht1664 it may help

  • Tax code V0 does not exist for jurisdiction code IN00

    hi mm
    when i am creating a purchase order
    After creating the PO
    when i go to invoice and enter tax code V0 and jurisdiction code i face the error
    Tax code V0 does not exist for jurisdiction code IN00
    Message no. FF718
    Diagnosis
    You have entered tax codes and jurisdiction codes in the G/L account items. The amounts of these items are used as the tax base to check the tax amounts you have entered or to determine the taxes. The system has now determined that one or more of the "tax code / jurisdiction code" combinations do not exist in Customizing.
    System Response
    Calculation of the taxes or checking of the taxes entered had to be terminated.
    Procedure
    Check the tax codes and the jurisdiction codes in the G/L account items or asset items. If these are correct, inform your system administrator.
    Procedure for System Administration
    Change the tax jurisdictions you specified in Customizing under Financial Accounting -> Financial Accounting Global settings -> Tax on Sales/Purchases -> Basic Settings -> Define Tax Jurisdictions
    i have dne as per thr need in define Define Tax Jurisdictions
    then also i am facing same error
    Regards
    Vinit

    Hi Vinith,
    After maintaining the tax jurisdictions maintain/create the tax codes. Pls ensure tht created tax codes having field of jurisdictions code.
    You created tax codes after tht you defined tax jurisdiction codes then you will get this kind of errors
    Hope its clear still if u hve questions let me know.
    reg
    Durga
    *assign points if the the info is useful

  • Forgot my lock pass code. how do i reset my pass code

    forgot my pass code. how do i reset my pass code?

    I have a use ipod it worked when i bough  it. but did not sysnic it to my computer and starting downloading with my wirelss and put a password in it,  it work fine until my son changed my password and forgot it and now it will not sysnic wirh my computer.  I have the information from it , Still can't get it to do anything. not even with itunes. Looking for firmware to open  it to change my passcode.

  • I lost my redemption code to install Lion onto my new computer. Is there a way I could get it again? When I go to the "get the update" page, it says that my serial number already has a code. How do I find this code again?!

    I lost my redemption code to install Lion onto my new computer. Is there a way I could get it again? When I go to the "get the update" page, it says that my serial number already has a code. How do I find this code again?!

    It is probably broken. You can try restoring it using Recovery Mode, but if that fails its time for a new phone. After all, it is 4 generations out of date. See: Recovery Mode

  • HT3678 quicktime pro doesn't accept my registration code.  I have paid for two codes and neither one works.

    quicktime pro doesn't accept my registration code.  I have paid for two codes and neither one works.

    Ensure that you're following these steps.

  • I'm trying to redeem my OS X Mountain Loin and every time i punch the code in it tells me that that code has been used so how can i fix that ?

    how can i change that because Apple sent me the code

    The Apple Support Communities are an international user to user technical support forum. As a man from Mexico my first language is Spanish. I do not speak English, however I do write in English with the aid of the Mac OS X spelling and grammar checks. I also live in a culture perhaps very very different from your own. When offering advice in the ASC, my comments are not meant to be anything more than helpful and certainly not to be taken as insults.
    If you received that message the first time that you used the code then contact Apple directly for a new code. This is a known issue with these codes. Otherwise, you can only use the code once. After that, if the code worked, Mt Lion should appear in the Purchases pane with a download button.

  • Mapping new product code from source system to old product code in Oracle COA

    Mapping new product code from source system to old product code in Oracle COA
    Here is the situation:
    One of our legal entities is changing their product codes in their COA segment. We are not changing the code structure in the global SOB. Is there a workaround to pull the source system information into ADI (or any other tool) and map it to the current Oracle product code?
    Thanks and regards,
    [email protected]

    Only The  Data of Your Code will Change
    then if you are trying to copy a standarad sap-code , you need to copy
    every include, FM
    there is a Copy option over there in program
    you can do tat
    thnkx bhanu

  • Error msg Z1019 when using MIRO 'Tax Code V4 cannot be used for Co Code'

    When trying to post an Invoice for an EU Vendor using MIRO we are getting an error message 'Tax code V4 cannot be used for Company Code &'.  Tax Code V4 is set up via FTXP as an input Tax Code 'Services within the EU' with EU code '5 - Input tax for services - VAT 2010'.  Any ideas or thoughts as to why this Tax code is not working as it should be in this scenario?
    Many thanks in advance for your help & assistance.

    Hi,
    it seems there is a validation raising message Z1 019.
    Go to transaction OB28 and check the existence of the validation.
    Best regards.

Maybe you are looking for

  • Can you work on iMovie from an external drive?

    I am working on a iMovie with iPhoto pictures and footage from my Sony HD DVD video camera. My internal drive does not have enough space to complete the movie. I have a Lacie external drive which does have enough space. I have opened an iMovie projec

  • Can I use a 1 TB EHD which has an iPhoto library on it for Time Machine backup?

    Or do I need a separate EHD for that? I'm trying to make an ancient 2008 MBP (running OS X 10.6.8, 2.5 GHz Intel Core 2 Duo, 2 GB 667 MHZ DDR2 SDRAM) last me for another 6-9 mos. With my hard drive about full I ordered an EHD and copied my iPhoto lib

  • Deleted files

    a number of files have been deleted from my pc. My ipod is set to auto update, is there any way to stop the files being deleted from there next time i connect it? Files seem to be disappearing at random. I haven't made any changes other than update t

  • Manual install of DPM 2012 SP1 protection Agent and how to automatically approve Microsoft Software License term ?

    Hi All, When installing manually protection agent DPM 2012 SP1 on new target computer, I get "Microsoft Software License terms" to accept... Is there a way to automatically approve the license ? I try various commands like : /quiet /quiet /eula:yes /

  • Getting IO exception when trying to view the joblog.log file

    Hi, We are unable to view the joblog.log file. The joblog file is created in server path, but when we trying to view/read/download the joblog.log file we are getting JCS-108004: An IO exception occurred accessing a local file error. server path: xxx/