Start Asynchrono​us Call Reentrant

I've experimented with the new LV 2011 "Start Asynchronous Call" method on reentrant VIs.  I am able to instantiate multiple clones of the VI, but the input data is not propagated to the clone VI.  I have tried a few different 'options' flags on "Open VI Reference."
Has anyone else observed this behavior?

Hello Jonathan,
This is Andrew Brown, an Applications Engineer from National Instruments. I will be happy to work with you to get the Start Asynchronous Call to recognize your inputs. 
After examining your provided code and creating an example myself, I found one issue with your code. The only flag you should need to use for Asynchronous Call and Collect is x100. That is based off the Open VI Reference and Asynchronously Calling a VI and Collecting the Results documents located within LabVIEW 2011 Help. If you were going to pass in multiple flags, you would want to use the OR operator ( v ) rather than the AND operator ( ^ ). 
I attached the example code provided by LabVIEW 2011 within the "Asynch Call and Collect.zip" file.
Based off that code, I wrote my own example that asynchronously calls a subVI multiple times with different inputs. The code for my example is attached as "Multiple Asynch Calls - Diff Inputs.zip" 
Please let me know if you are still having issues after working with these examples. Thanks, and have a great day!
Regards,
Andrew Brown 
Applications Engineer
National Instruments
Attachments:
Asynch Call and Collect.zip ‏14 KB
Multiple Asynch Calls - Diff Inputs.zip ‏15 KB
Asynchronous Call and Collect.JPG ‏58 KB

Similar Messages

  • Exec.State and Start Asynchrono​us Call

    In my application I like to start a VI asynchronously by pressing a button control. I just want to have one instance of the VI running so I let the caller test if the VI is already running. Unfortunately there seems to be a bug in the Exec.State property if you use it with a VI reference that has been built with a type specifier. It returns always "Running" as state.
    I found a workaround by first openening a "normal" reference to the VI, questioning the Exec.State property, closing the reference and opening the "typed" reference. That works like I think it should.
    My question: Is this difference in behaviour of the "VI" property node and the "VI Interface Type 1" property node by design or is this a bug in LV 2012 (I have not tested it with another version) ?
    Matthias

    I just wanted to point out about the very reason of the situation:
    These are the options you can read by the Execution State property. As already marked, "Running" indicates that the VI is (at least) reserved for execcution. It does not necessarily mean that the VI is actually executing!
    That being said, opening a typified reference to the VI already reserves the VI for running, hence your property node returns this value.
    Your workaround seems to be well-thought out and should work in any case. Y already gave another option of handling this situation.
    I doubt that there is another, better solution other to these two.
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Start Asynchrono​us Call available on Real-Time or not?

    If I work on code on an RT target the new Start Asyncronous Call nodes do not show up on the Application Control Palette.
    However, LabVIEW does not complain if I trick it to run such a node on RT by adding it while editing it for a Windows target...So, is the asyncronous call supported on RT, or not? Well, it does not seem to behave the way you would expect it to..as far as I've ben able to establish so far, but should it? Will it be fully supported (show up on the palette etc.) later?
    MTO

    I can't comment on whether Asynchronous Call is officially supported on RT in LV 2012 (because I don't know the answer).  However, I've used it extensively on RT, and I haven't experienced any problems.  Keep in mind that dynamically launching background VIs is going to introduce jitter into your RT system, but that is to be expected.
    -Chris M

  • Regarding Facetime on my Ipad. I get started on a call and after 10 or 15 minutes I cannot hear whom I am talking to. They can still hear me and I still have picture on the screen but my sound stops working.

    Regarding Facetime on my Ipad. I get started on a call and after 10 or 15 minutes I cannot hear whom I am talking to. They can still hear me and I still have picture on the screen but my sound stops working.

    Why can't we use Acrobat Pro for mobile devices? Save a whole lot of headaches!!! Now I have to return this subscription.

  • We have had Verizon Wireless service since 2007. We have 6 lines on our account. Unfortunately in 2012 when I (903.647.0073) upgraded from the iPhone4s to the iPhone 5 I started having reception problems. I started having dropped calls in my home. I had t

    We have had Verizon Wireless service since 2007. We have 6 lines on our account. Unfortunately in 2012 when I (903.647.0073) upgraded from the iPhone4s to the iPhone 5 I started having reception problems. I started having dropped calls in my home. I had to go outside to get reception without dropped calls. I was told that because of metal in my home I would have to purchase a Network Extender for $250. And we HAVE not metal in our home. AND our other lines all work fine. I felt this was ridiculous. We already pay $350+/month for service and I should NOT have to purchase additional equipment for a service that I already pay for. The manager of our local store at the time gave us at no cost a Samsung Network Extender. It worked beautifully until about a month ago. I went to our local Verizon store and was told that I would have to purchase an extender. THIS is RIDICULOUS. We have been loyal customers for over 7 years and have been very satisfied with our service. Unless this issue can be resolved without purchasing an extender we will be switching our service as our lines come up for renewal. I regret this as we have been very happy with our service. But we should NOT have to purchase anything extra for one line that will not get good reception. Again, we pay $350+/ month for a service that does not work properly, simply RIDICULOUS! Currently the "sys" light flashes red (slow) and the GPS light remains red. Please help this very frustrated customer.

    Regardless with what carrier your with you might have the same issue, My recommendation would be to get a router that will help you with viewing live traffic and keep a tally of your usage and any device connected to your internet connection.  You can go with the peplink balance 20 and be able to look at your traffic by the hour, daily, weekly, monthly or yearly.  Look for trends, see what computers or devices are doing what I attached a screen shot so you can see an example of mine.  You can purchase the router at 3gstore
    http://i45.tinypic.com/6zc674.jpg

  • When making or receiving calls on my iPhone 4, I can hear the person on the other end, but they can't hear me. This happens most of the time, but occaisionally, it works! Sometimes it starts during the call...Can you help me?

    Infos:
    IPhone 4, 32 GB
    IOS 7.1.2
    Problem:
    Videos, memos and other sound microphone using applications work without any problem. It just appears when calling or being called. Sometimes it starts during the call.
    Situation:
    I sent my damaged IPhone 4 to apple for reparation. I bought it for 180 € + 20 € for my retailer.
    Some calls later this problem started (only at the new or repaired IPhone). My 3 month warranty is almost over (4 weeks left)
    Steps to solve the problem:
    - rebootet the IPhone several times
    - made a backup (iCloud and ITunes) and recovered it again
    - I set back all settings to standard.
    --> Nothing changed
    Then I went to my retailer, who sent it to Apple, but I just received a sheet of paper where they said, they did nothing.
    Surprisingly the problem still exists. Started at the second call I received. Now the warranty time is going to run out in 4 weeks.
    Open Questions:
    What else can I do? I have a not working IPhone and nobody want's to help me ?!? I feel lost and disappointed. Do they want to cheat me, so my warranty runs out? Thanks for any help

    I have the same problem.
    IPhone 4
    IOS 7.1.2
    My retailer sent it to Apple, but I just received a sheet of paper where they said, they did nothing.
    Surprisingly the problem still exists. Now the warranty time is going to run out in 4 weeks.
    What else can I do? I have a not working IPhone and nobody want's to help me ?!? I feel lost and disappointed.

  • Can a thread's start() method be called more than once?

    Is it legal/well-defined to call a Thread object's start() method after a previous call to start() has completed?
    eg.
    Thread t = new Thread(public void run() {...});
    t.start();
    t.join();
    t.start(); // will this call fail?

    Ok, since no one's going to answer you I will.
    Yes. It won't work if you call start() multiple times and it will throw an exception on all subsequent times.
    The way I work around it is to put the method in an inner-class and then create a new instance of that iner-class everytime I want to start a new thread.

  • When I start a phone call, noboby can hear my voice . Only when I click on speaker  voice can be heard at both ends.

    When I start a phone call,nobody can hear my voice and viceversa. Only when I click on speaker , voice can be heard at both ends.

    Return the darn thing!
    Why do you & we accept a phone that does not work 100%
    We should be discounted the non working percentage, or simply get a new working one.
    Would you accept a saucage with a rotten end, and hope they would treat it with enough chenichals to make it taste and look good?
    The problem seems to me a hardware problem, and may be poor assembly. Noticed that incoming calls on my first 4s when vibrator was on, made an extra vibrating noise - i.e. loose speaker, printboard or what do I know.
    This does not occur on the phone I purchased yesterday, waiting for the other at the repairshop.
    Does Telenor and Apple think I will accept the repaired brand new phone?
    NOT!
    TCB

  • People cannot hear me at the start of our call on the Iphone 4s?

    People cannot hear me at the start of our call on the Iphone 4s. What could be the problem? IOS? Home button? Lag when I swipe?
    ONLY when I am getting a call, I will swipe the home button and the awnser option will lag a little bit, therefore the caller cannot hear me right away. After saying "Hello" the second time, everything returns to normal. I have tried everything and I am not sure what the problem is? It cannot be hardware since Skype, Memo, Facetime, all work perfectly. Everyone on these threads has the problem from both sides, while I only have it when I receave calls. I have tried it with head-phones and it does not fix the problem. What can I do? Will it be fixed in the upcoming IOS?
    Although its a small problem that doesn't effect other parts of my phone, I would like to find someone who faces the same problem.
    Thanks

    http://support.apple.com/kb/TS2802

  • A Start Doc Print call was not issued - error appears

    Hi
    HP M1136 MFP used on windows Vista for over one year. Software reloaded using HP-CD supplied. Now "A Start Doc Print call was not issued" - error appears whenever print command from MS-Word, Excel or DF or even notepad is given

    rrhp,
    Welcome to the HP Forum.
    You might wish to remove (from Programs and Features) and then reinstall your Full Feature Software:
    HP LaserJet Pro M1136 Multifunction Printer Drivers
    Find the Full Feature Software in Category "Driver - Software Installation Software"
    Restart / Reboot the computer after the software installation is complete
    Next, if you have not done so, take a look at the Firmware Update for your printer; check Category "Firmware".
    NOTE:  You will want to install the Software first, then perform the firmware update on the printer.
    Finally:  If you like, you can update / check the tools in Category "Utility - Diagnostic Tools"
    Hope this helps.
    Click the Kudos Star!
    It is a great “Thank You” for the Experts who offer to help!
    Kind Regards,
    Dragon-Fur

  • Skype 7.7 crashes when I try to start a group call (Windows 10)

    The problem started when Skype updated to 7.7. I can login, chat, but when I start a group call, it instantly stops working and crashes. Didn't tested if this was happening on private call though, but it's still an issue. Here's the DXdiag log: ---------------
    Diagnostics
    Windows Error Reporting:
    +++ WER0 +++:
    Falha no bucket , tipo 0
    Nome do Evento: APPCRASH
    Resposta: Não disponível
    ID do CAB: 0
    Assinatura do problema:
    P1: Skype.exe
    P2: 7.7.0.103
    P3: 55b7d8c2
    P4: unknown
    P5: 0.0.0.0
    P6: 00000000
    P7: c0000005
    P8: 5a080e20
    P9:
    P10:
    Arquivos anexados:
    C:\Users\victor\AppData\Local\Temp\WER3EB7.tmp.WERInternalMetadata.xml
    Esses arquivos podem estar disponíveis em:
    C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_Skype.exe_bc4dc71a26ff5b2b6b3f40b9a5143e5f7e86a15_00000000_17be4619
    Símbolo da análise:
    Verificando novamente solução: 0
    ID do Relatório: 5ffd32a7-3b1f-11e5-9bc4-1078d2bd1d03
    Status do Relatório: 97
    Bucket com hash:

    Ah. This forum is for photoshop elements. In CS5 you have a lot more options for workarounds, and you should probably post your question in the Photoshop for Windows forum to get the best answers:
    http://forums.adobe.com/community/photoshop/photoshop_windows
    Good luck!

  • My bionic has started having my calls hang up unexpectedly and tries to dial calls during a call by my face touching screen I guess, can I fix it?

    This started about 2 weeks ago, when I get calls they either can't hear me and we gotta call back, or during a call my screen lights up and either my face causes it to hang up or phone does, or it try's to dial another phone number for me, it tried an international number, I can not afford this for sure, but I have cleaned senors and screen per protocol and tried updates.  At the same time my camera started only focusing every now and then, it doesn't alert me for some of my calls and texts randomly, and starts to make a call on its own while it is sitting on a table with no one touching it, is it me and my phone or is others having these issues and can I fix them?

        osubuckeyebest, I am sorry to hear about your phone issues! How long has this been an issue for you? Is there any physical or water damage to the phone? Have you tried to do a master reset on the device http://bit.ly/RFtIqk ?^SP

  • 100% CPU usage after starting/joining a call

    This problem has been persisting for a few months now, and I haven't found a fix. Sometimes when I would start or join a call, the first thread of my i7 would shoot up to 100% usage (Monitored with MSI Afterburner). I originally thought it was because I had an older version of Skype, but I updated to the latest version and still had the issue. To get the usage to go down, I either have to restart the laptop or put it into sleep mode. When I checked the task manager, Skype was only using 0%-2% of my CPU, but System and System Interrupts run at higher usage (6%-7% each). I am running Windows 8.1 on a laptop with the desktop version of Skype. Please note that this also does not happen every time, just on some occasions.
    EDIT: It eventually happens, but not always right away.

    Yes, you can use NI-DAQmx with Visual C++ and with Mesurement Studio 7 or later you also have Microsoft Visual C++ class libraries for NI-DAQmx.
    If you are now developing a application I would advice to move to DAQmx since this the Traditional libraries are nolonger activly developed, we will only be adding new features and hardware to NI-DAQmx, thus for future support of the application it's better to use NI-DAQmx then Traditional NI-DAQ.
    For more information on NI-DAQmx see:
    http://zone.ni.com/devzone/conceptd.nsf/webmain/ee47b125bb9e053686256fbc0014c384?OpenDocument
    Met vriendelijke groet / Kind regards,
    Karsten
    Applications Engineer
    National Instruments

  • Create a DLL with asynchrono​us calls in LabVIEW for use in another environmen​t.

    Hello All,
    I need to create a DLL in LabVIEW that is going to be used from inside a Delphi environment.
    The thing that confuses me is that I don't know how to create asynchronous functions.
    Let me further explain.
    I want to have an "Init" function.
    This function starts a continuous dataacquisition process. The dataacquisition process continuously samples data at a rate of 1Msamples/sec. (in blocks of 4096 samples each time)
    I want to have an "Abort" function.
    This function stops the continuous dataacquisition process.
    The third function I need is a "MeasureAndAnalyse" function.
    If this function is called, the following block of 4096 samples is processed (FFT, ...) to retrieve the valid data.
    The fourth function can be used to check if the MeasurementAndAnalyse function is ready and return the actual result if this function is ready.
    What I don't know is how I can do all of this asynchronously.
    In my opinion the LabVIEW vi's I make are all synchronous.
    How to do this asynchronously???
    Does anybody know of an example of a similar thing?
    Thanks in advance for all the help!
    Dennis.

    Ok, after somem ore searching I found an example called "Building Asynchronous DLLs in LabVIEW".
    I will give that a try.

  • Asynchrono​us call of a re-entrant VI hangs

    I am trying to use the Start Asynchronous Call Node to open a re-entrant sub-VI in "fire and forget" mode.  To get the hang of it, I put together the attached test application.  Clicking "Add Channel" in the main VI launches the subVI, passing it a different "ID" for each sub-VI call.  The subVI has an "Identify" button which is supposed to open a dialog with its ID, and a stop button which ends the subVI's event loop.
    Trouble is that, although the subVI launches fine, none of the front panel buttons are functional.  Pushing either one causes it latch, but doesn't release or execute its function (sort of like the Event loop is locked up).  The subVI works fine when run independently at the top level.
    This seems to be tied to the the fact that the sub-VI is re-entrant.  Running this with a single non-re-entrant VI works as expected.  Is there something I'm doing wrong?
    Attachments:
    main.png ‏47 KB
    subvi.png ‏25 KB

    OK, after looking at some other threads and the Open VI reference help more closely, it looks like the problem was that I had the 0x40 (enable simultaneous calls on re-entrant VIs) option enabled.  (0xC0 = 0x80 + 0x40).  This creates a reference to the target VI itself, not the clone that actually gets called, so if you pass that reference to FP.Open or to SubPanel.Insert, it will not do the right thing.  I will have to think through this a little more before I fully understand it, but changing the Open Reference to simply 0x80 seems to fix things.

Maybe you are looking for

  • Rating images in different formats with Elements 9

    Hi there , I am in my first couple of weeks of using Elements 9 and have a question that hopefully someone can help me out with . I use a Nikon D300 and have the camera set up to shoot in NEF(Raw) & JPEG . On Sunday I shot over 250 images which turne

  • Treeview, keep focus on clicked node ?

    First post here, hope I am in the right location. I am using Visual Studio Express 2103 for web. On my asp page I have a Treeview with 4 Levels. From sql server I load the hierarchy as TopLevel-->                   Product-->                         

  • Editing online

    Hi, I have seen a similar question, but I am not sure if that's the answer I was looking for. We have purchased a subscription online and the person who purchased it said they read something about being able to edit PDFs that have been uploaded onto

  • IS-OIL Delivery confirmation

    Hello colleagues We have a problem with delivery confirmation(tr. o4h1) It is very interesting situation because we can confirm a delivery but Shipment Status is still 2(without loading). Supply chain consists of planning shipment(tr. o4f1, sh.status

  • Converting from BASE 64 to Decimal Base 10

    I have an requirement to convert a value from base 64 to decimal base 10 for ex if i give b the resultant output should be 27 as per the website -- http://convertxy.com/index.php/numberbases/ I tried using the UTL_ENCODE.BASE64_ENCODE with UTL_RAW.CA