Unexpected delay when dynamically called VI closes

LV10.0 / WXP
A VI is called dynamically by Run VI Method (Wait Until Done = FALSE, Auto Dispose Ref = TRUE).
Queues are used to exchange data with the main VI.
When this VI closes ("stop" message from the main VI), LabVIEW hangs for about 25 seconds (!) with one of the CPUs of the dual core machine at 100%.
Has anyone else encountered this strange behaviour ? Any ideas ?
Many thanks in advance
Solved!
Go to Solution.

Norbert B a écrit :
Can you give us a small picture of the way you are calling and releasing the subVIs?
As mentionned in my first message : Run VI Method (Wait Until Done = FALSE, Auto Dispose Ref = TRUE) is used to call the VIs.
Release : after reception of a "close" message (queue), the dynamic VIs terminate their execution
If called with Auto Dispose Ref = FALSE, the freeze appears when Close Reference is executed in the calling VI (after reception of a "I'm closing" message from the dynamic called VI).
If loading the VI takes only a short time but unloading takes long, it seems to me that those subVIs allocate many new handles/memory spaces during runtime. Is that the case?
As mentionned in a previous message : The memory usage changes from about 687 to 676 MB when the four
instances are closed. The number of handles decreases from about 272k to
61k.
This sounds like the whole application freezes for the time being. Is it a single loop architecture?
No. It is a rather big application with several VIs running independently and exchanging data through queues.
In addition: You call those subVIs dynamical with reentrant execution (at least some of them). So they should run in parallel.
Yes, they run in parallel.
Did you configure different preferred execution systems for your different subVIs?
Yes, I have tried several combinations and also changed the Priority. I also tried to replace the While Loop of the VI which communicates with the PLC by a Timed Loop in order to specify the processor. Unfortunately all my trials ended without any succes.
Did you check for reference leaks using the Execution Trace Toolkit?
Yes. There are none.
Norbert
Thank you very much for your help

Similar Messages

  • When to call to close account when contract ends

    My contract is up on October 15 i want to close my account when contract ends since my  account manager no longer wants to use the account any longer. so i  wanted to know when do i exactly call Verizon to cancel before the date  or the same day ? and how will the process of closing the account will  be?

    Call the day the contract ends MODERATOR COMMENT: The previous sentence is incorrect. if you cancel the day the contract ends, there will be an early termination fee assessed.< If you do it before they will charge you the an early termination fee. I swear that I was told if I did it even one day before the end of the contract I would pay a prorated etf. Also, if he wants to keep the number then I would port it out first the final day of the contract or he will loose the number. Make sure it is completely transferred and working before canceling. If that's not important to him then just call to cancel it when the time comes.
    Normally, the service cancels with the port process, but I wouldn't trust them not to charge you an extra day or two.
    Message was edited by: Verizon Moderator><

  • Outbound Dialer Delays when connecting calls

    I have a particular dialer campaign that has a 5 seconds delay from when the callee picks up the phone and the IVR greeting starts playing; it goes something like this: ring, ring, hello (silence for +- 5 secs), IVR greeting starts.
    The campaign is:
    Transfer to IVR Campaign
         Enabled IP AMD
         Transfer to IVR Route Point
              Terminate tone detect
    Dialing Mode:
    Predictive_Blended
    ICM 6 with IP IVR Queue Manager 3.5
    We have 7 other campaigns with the same config and those ARE NOT experiencing the delay problem.
    any help is greatly appreciated.
    thanks

    Hi Voiceops,
    Do you have any updates for your case?
    I also have same issue.
    Thuc

  • Audio delay when call is answered, CUCM 8.0

    I have a client who is reporting an audio delay when a call is made to an external number. Call setup is fine and ringing begins immediately after the last digit is dialed.  When the called party answers there's a 1 or 2 second delay before either party can hear each other.
    Outbound calls are routed to a SIP trunk.  I am suspecting that an MTP is required but checking that off causes all calls to fail. 
    I then discovered that the only MTP defined in CUCM is the default and this is in a different device pool than the SIP trunk with the delay issue.
    Before I got through a possilbe hardware purchase (router, dsps, etc.) for the site with the problem I was hoping someone could confirm that this may in fact be the issue.
    Thoughts?

    Under older versions of CUCM, you can set that same parameter as a global Service Parameter for the CallManager process.You can try that. Newer versions pushed the setting down to the individual trunk level. Be aware the global setting will affect all calls on all SIP trunks, so test carefully after the change.

  • Why is the template not being used when dynamic page called ?

    Hi,
    I have created a dynamic page and assigned a template to it. When I call the dynamic page using the 'show' procedure from a form, I do not see the template.
    Why is the template not being used ? How can I get the template working when I call the dynamic page ?
    I even tried to show the page from the dynamic page's manage components tab and there is same problem. Template is not being used.
    thanks,
    Mainak

    You can alter the generated package body to include the following function in the header and footer sections.
    Header:
    PORTAL.wwv_headings.show_header(
    p_template => 'PUBLIC.TEMPLATE_3',
    p_heading => 'Dynamic Page',
    p_help_link => 'PORTAL_DEMO.EXAMPLE_DYNAMIC_PAGE.help',
    p_about_link => 'PORTAL_DEMO.EXAMPLE_DYNAMIC_PAGE.about');
    Footer:
    PORTAL.wwv_headings.show_footer(
    p_template => 'PUBLIC.TEMPLATE_3',
    p_help_link => 'PORTAL_DEMO.EXAMPLE_DYNAMIC_PAGE.help');
    where
    <PORTAL_DEMO> indicates application schema
    <PORTAL> indicates the name of the portal (normally this will be portal30 by default).

  • MSS - Business Event Details - Error Unexpected Exception when Calling RFC

    Dear Experts,
    Manager is getting the Error "Unexpected Exception when Calling RFC from Profile Application 'Business Event' when he tries to get the Training history of ONE employee in MSS. However, he is getting the details for the other employees of his department.
    Any inputs on this?
    Thank you.

    I believe it is our custom iView that is incorrect.

  • When someone call me on RTX 3088 the unit close by...

    When someone call me on RTX 3088 either on Skype or on landline the unit closes by itself ! It initiates a die command and it shuts down immidiatly and i have to press power again to open it. I tried to update the softaware but it says that its the latest one. 

    This is my post to another thread with same question, maybe it helps.
    This is another silly advice, but take it or leave it
    I had exactly same problem, I could hear ringtones and when someone called me if I tuned on speakerphone I could hear them. My iPhone was constantly in headphones "mode" and I was not able to hear music over my speaker.
    So this advice may be funny or stupid but that helped me: - try to suck air from your power connector on iphone. So make a closing with your mouth all around lower part of iphone where connector is, and suck air as hard and as long as you can. Again do not blow, just suck air.
    My GF was laughing at me but after 5 min of constant sucking of my phone (looks weird) I got everything to work normal as before.

  • IPhone 4s , when I call and charging at the same time, I felt like been shocked when my ear close to the phone?

    iPhone 4s , when I call and charging at the same time, I felt like been shocked when my ear close to the phone?

    Talk to your email provider. They control their servers and what happens to your email.

  • About the delay when calling Player.start()

    How to eliminate or reduce the delay when calling Player.start()? Can someone kindly give some suggestions about the issue? Is that right the more small size of the media file, the more small delay? Can the delay be eliminate?

    I think my expression is not clear enough, I rewrite as followed: How to eliminate or reduce the canvas repainting delay when calling Player.start(). The media playing does not delay, but the canvas repainting have a serious delay.

  • Why is iphoto unexpectedly quitting when trying to order prints?  I called yesterday and apple indicated this was a problem.  Any idea when the problem will be fixed?

    I photo is unexpectedly quitting when placing an order.

    That's what happens if you read 12 month old threads
    http://support.apple.com/kb/HT1564
    Regards
    TD

  • Cloned VI aborts when caller VI closes

    OK, I know this is a common problem... you want to create a VI that spawns a clone of some other VI, but when the caller's call chain execution completes, the clone(s) created automatically abort.
    It seems like there must be a way around this.
    Example of a use case: I want to create a LabVIEW Step in TestStand that launches a daemon or engine that will run continuously in the background. 
    Anyone out there who knows how this can be done? Seems like I may have done it before, but I can't seem to figure it out now. Some way of creating an independent holding location for the reference?
    Message Edited by 10Things Rob on 05-20-2010 01:58 PM

    That is the garbage collection doing its job since it thinks you forgot about the background VIs. Don't you hate it when LV cleans-up behind you?  
    Have the spawned VI open a ref to itself when it starts so it can keep itself open.
    Now if that does not do it, add the extra step of getting a ref to its FP.
    I usually do both and don't remeber if it was the VI ref or the FP ref that keeps it alive.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Dynamic call for a ref cursor: ORA-21779

    Hi,
    Here is an environment:
    create or replace
    PACKAGE PKG_GETDATA AS
    TYPE cursor_type IS REF CURSOR;
    Procedure SimpleGet (cData In Out Cursor_type);
    Procedure DynamicGet (cData In Out Cursor_type);
    END PKG_GETDATA;
    create or replace
    PACKAGE BODY "PKG_GETDATA" AS
    Procedure SimpleGet (cData In Out Cursor_type) As
    Begin
    Open cData For
    Select 1 from Dual;
    End SimpleGet;
    Procedure DynamicGet (cData In Out Cursor_type) As
    Begin
    Execute Immediate 'Begin PKG_GETDATA.SIMPLEGET(:1); End;'
    Using In Out cData;
    End DynamicGet;
    END PKG_GETDATA;
    So- first simple get works fine:
    Declare
    cData PKG_GETDATA.Cursor_type;
    aNumber Number;
    Begin
    PKG_GETDATA.SimpleGet (cData);
    LOOP
    FETCH cData INTO aNumber;
    EXIT WHEN cData%ROWCOUNT > 5 OR cData%NOTFOUND;
    dbms_output.put_line (aNumber);
    END LOOP;
    close cData;
    End;
    BUT dynamic call does not works at all!:
    Declare
    cData PKG_GETDATA.Cursor_type;
    aNumber Number;
    Begin
    PKG_GETDATA.DynamicGet (cData);
    LOOP
    FETCH cData INTO aNumber;
    EXIT WHEN cData%ROWCOUNT > 5 OR cData%NOTFOUND;
    dbms_output.put_line (aNumber);
    END LOOP;
    close cData;
    End;
    It throws ORA-21779 exception; what is more- it does work on 10.2 db version but does not work on 11.2 version! Could anyone explain that?
    Regards
    Bartlomiej D.

    Hi,
    Believe me, it may be very handful while working with handlers.
    Anyway- could anyone help me on that?
    Regards
    Bartlomiej D.

  • VI Profiler on dynamic called VI archiecture

    I have a question about debugging to put to the Gurus out there.
    My architechure is this, Event driven Producer, which queues Data into the Primary Consumer Loop. Primary consumer Loop performs an action and Queues information into the Secondary consumer Loop which updates the front panel GUI.
    The Primary consumer calls test VIs dynamically using a call by Ref node function.
    I have a very simple test VI which I am repeatedly calling which is outputing the time since the whole test sequence started (in ms) to the Front panel.
    For debugging I have put a conditional disable around the dynamic call function, and I can change it to call the test VI directly.
    VI profiler is telling me that the execution of my run a test VI which does the dynamic call takes 0ms. This can't be true.
    The results from VI profiler would indicate that I could run 20 tests in about 1 second, but it's taking me about 10 seconds.
    I do 10 display updates (via property nodes to change the active row, colours and contents of a multicolum listbox) per test.
    Any ideas how I should be debugging where the time is being lost? - VI profiler is not helping enough.
    Cheers
    James

    James W wrote:
    Ben wrote: Use the VI itself to time how long it takes by getting the time before and after.  
    Opening a dynamic VI takes time. Load ahead of time use it and when done close it.
    1) Def FP updates (to shut of  screen updates), hide the MCLB, update it, un-hide, un-defer. passing data directly to the MCLB via terminal is fastest but can't do color stuff without property nodes.
    2) Pre-load
    Ben
    1) 
    And here comes the killer...
    If I defer FP updates, the code runs slower!!! not faster.
    If I change the MCLB from Synchronous to Asynchronous using the drop down menu before I run it has no effect on the run time.
    If I change the MCLB from Synchronous to Asynchronous at runtime using at property node (not meant to do this), I get error 1073 and the GUI stops updating (sometimes while redrawing the screen half way down), but wiping over the FP window 10 seconds later shows the code has run significantly faster.
    2) How do you preload 120 different tests all with the same VI pattern (generated from the same template) and ensure you have the correct VIs in memory without running them? (and producing loads of errors - these tests all logs any errors they produce to files)
    I asked for the Guru's I didn't think I was going to the the Knights so fast!! Thanks Ben
    Lacking Guru's you'll have to settle for me for now. 
    If the defer makes it go slower the issue may indeed be the FP updates since the defer forces an extra update when set.
    Is is slower if do the next two steps of hiding updating and un-hiding?
    If you toss all MCLB code does it run fast enough to make you believe it is the GUI update that is hitting you?
    Can you post image of your code as png or jpg?
    How much data is in the MCLB?
    This cloud has links to LabVIEW_Performance threads. Not sure if any of those threads ring a bell.
    Please show us the code to get the most out of us.
    Not sure about Q#2 but I would open them and keep a ref to each in array so that they are loaded when I need to run them. 
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Why is it that when someone calls my dad's phone, the incoming call shows up on both our screens?

    Whenever someone is calling my dad, we both get the call. It only happens when we are close. It only happens when the calls are for him. It happens even when the other person is not doing a multiple call. Does it have something to do with us having the same Wi-Fi? He has an iPhone 5 with iOS 8 and I have an iPhone 5c with iOS 8.

    It has to do with you and him sharing an Apple ID. This is not a good practice. Create a new Apple ID: http://appleid.apple.com.
    You could also go to Settings > FaceTime > iPhone Cellular Calls and turn if off, but ultimately you'll probably run into other problems down the road by sharing an ID.

  • Dynamically called VI becomes broken inside an executable. Error 1003 from "Open VI Reference".

    Here's the problem. Dynamically called VI becomes broken inside an executable in debug executable mode Error 1003 is occuring from "Open VI Reference" Block. The computer has all of the necessary drivers, NI-VISA and NI-DAQmx. This executable is a new release of software that currently works on the PC in question. I can using NI-VISA Remote Server control the instruments from my PC using the executable. But when I put the executable on the PC I am getting this error. The only way I have been able to get this to work properly is to build the executable from the console I believe the project was created in, note that the project file has been moved to a network drive and it still works. All of the stations I have opened the project in show the VI that is being called is runnable. I've tried building the executable from the console I am deploying to and the same thing happens.
    I am honestly at a loss for ideas why this is occuring. Is this something about the way LabView works internally that may be causing this problem?
    I have trolled this forum for idea's and none have made sense to me.
    Any input would be greatly appreciated.
    -Nate

    Two ideas:
    Mass compile the project to ensure all linkages are ironed out
    Include the dynamically launched VI's into the "Always Included" section of the build spec
    Report back on if either of these actions solves your problem.
    a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"] {color: black;} a.lia-user-name-link[href="/t5/user/viewprofilepage/user-id/88938"]:after {content: '';} .jrd-sig {height: 80px; overflow: visible;} .jrd-sig-deploy {float:left; opacity:0.2;} .jrd-sig-img {float:right; opacity:0.2;} .jrd-sig-img:hover {opacity:0.8;} .jrd-sig-deploy:hover {opacity:0.8;}

Maybe you are looking for

  • How do I get my iPhone 5s to back up to iCloud?

    I just got my iPhone 5s, and I tried to back up my photos to iCloud, but I found that only some of htem backed up when I went to photostream. When I went to photodate, I found that the apps before September 18th (the day iOS 7 came out) didn't back u

  • When should an attribute be placed in a separate dimension

    heyyyyy when should an attribute be placed in separte dimension

  • Unable to install Flash Player on 10.9.3

    Trying to install latest version of Adobe Flash Player via Firevox onto MacBook Pro 13-inch Retina. Uninstalled old version of Flash Player hoping it would help. Download okay, ask to add to my laptop okay, double click Adobe Flash icon to install; n

  • My lumia 1020 can't be recognized on my windows 7 ...

    When I plug my lumia 1020 to my pc the only thing that happens is a pc sound telling me that something has happened. But I cant se my lumia at all. What's wrong and what do I do? Solved! Go to Solution.

  • How to automate download update for Apps ?

    HI, Is there a way to automate downloads updates for iPhone or iPad (Apps) from itunes? I did not find a way to do it with AppleScript? There is a post said "No solution" for that option (from 2010). I wanted to know if the situation as changed since