How do I call the subvi in parallel with main VI. Main vi should not wait for the subvi

I have a subvi which takes the parameters like port name, transmit rate, message to transmit over serial port and Start/stop flag. This subvi calls VISA write vi in a loop continuously, till the Start/Stop flag is false, to write a message to serial port at a mentioned transmit rate. This subvi will be called from another VI. Actual intension is to transmit different messages to different ports continuously and stop them when required. In this senario, please provide solution for below points:
1. How do I call the subvi in parallel with main VI. Main vi should not wait for the subvi.
2. How does main vi can control already running subvi in parallel to it. In the above example I would like to start the subvi from main vi when start\stop flag is true and would like to stop it when the flag is false.
3. How do I call the subVI with one set of parameters from main vi, when same subVI is running with other set of parameters already from main vi(subvi being called in a case with different set of parameters each time when the case is called). Means, how do I keep track of reentrant subvi (different calls to same vi)from the same main vi.

Hi Dharani24,
Try if these are helpful,
http://digital.ni.com/public.nsf/allkb/DB92C44E7D4D8A1B862577CB007D9C45
http://zone.ni.com/reference/en-XX/help/371361J-01/lvconcepts/asynchronous_vi_calls/
http://zone.ni.com/reference/en-XX/help/371361J-01/lvconcepts/reentrancy/
Thanks
uday,
Please Mark the solution as accepted if your problem is solved and help author by clicking on kudoes
Certified LabVIEW Associate Developer (CLAD) Using LV13

Similar Messages

  • Have a Droid Razr M that is stuck in the reboot screen. I tried a hard reboot and a factory reset, and it still gets stuck in the reboot screen. How long should I wait for the reboot to occur until it starts back up?

    Have a Droid Razr M that is stuck in the reboot screen. I tried a hard reboot and a factory reset, and it still gets stuck in the reboot screen. How long should I wait for the reboot to occur until it starts back up? I tried the steps for a factory reset given on this site, but it still does not want to work. Any help would be greatly appreciated.

        Hello otter314!
    Let's take a look into this to see if we can figure out what happened. When did this begin? What's the software version of the device? Do you remember what was happening with the device right before this started? Please supply me with some additional information, I'm happy to help with a resolution!
    ChristinaB_VZW
    VZW Support
    Follow us on Twitter @VZWSupport

  • PIR should not consume for the SubReq

    Hi Guru's,
    Please help me how to configure the planning strategy for my below requirement.
    Currently i am procuring a HALB material thru subcontracting. This HALB is having BOM components. I need to send the BOM components to the vendor for assembly.
    The BOM components will be used in some other HALB also. My requirement is, the BOM components should not consume for the subcontracting requirements, it needs to consume for in house production only.
    The subcon requirement needs to generate the dependent requirements only, it should consume the PIR.
    Currently i am using the planning strategy 70, requirement type VSFB. In this, PIR is consuming for the SubReq.
    Please suggest me the suitable planning strategy for this scenario.
    Thanks & Regards,
    V. Suresh

    Suresh,
    I am curious why you would not want SubReq. It is also a different kind of dependent requirement. Also it seems yo are supplying the components to your vendor. So it makes sense that your forecast is consumed by dependent requirements so that planning is effective.
    If for any reason you do not want to supply components to vendor then it would be best to mark such components as vendor provided. In such cases it would not consume your forecast (PIR). Hope this gives some new perspective.
    Thanks,
    Ram

  • Should I wait for the release of FF 4 to install on my new laptop?

    I have a 3.x version of FF on my "old" laptop, but I bought a new laptop a couple of weeks ago and want to install FF4 on it. Q: should I wait for the full release of FF 4 to install on the new machine, or would it be "better" to download FF 3.x first?

    Personally I would use the Firefox 4 release candidate.
    The current Firefox 4 release candidate will become the official Firefox 4 release providing no bugs are found that force a new version to be created. If there is a second release candidate, those using the first release candidate will automatically be updated to the latest version. It is still undergoing quality assurance testing but so far no showstopper bugs have been found.

  • I am about to buy my first Macbook Pro, should I wait for the possibility for a 2015 macbook, or just get the most recent model currently? (9-22-14)

    I am about to buy my first Macbook Pro, should I wait for the possibility for a 2015 macbook, or just get the most recent model currently? (9-22-14)

    No one knows if there will be a new model and if so, when that would be. However, there always will be something bigger, better, and newer around the corner, so you'd be waiting forever.
    Buy it when you want or need it.
    FWIW, here are the specs of the latest models (which happen to be mid 2014):
    Apple - Support - Technical Specifications

  • Should i wait for the new i pad or buy the current one

    should i get the new ipad 2 or should i wait for the ipad 3?

    No iPad 3 has been announced yet. If the current iPad does what you need, and you can afford it, then you might as well get one now and start getting use out of it - unless you want to wait an unknown number of months for a un-spec'd/unnounced product

  • Should i wait for the iPad 3 or get the iPad 2. my birthday is only less than a month away but rumours are that it will be released around my birthday

    should i wait for the iPad 3 or get the iPad 2. my birthday is only less than a month away but rumours are that it will be released around my birthday

    Check with sites like MacWorld, engadget, iLounge, MacRumors, CNET. Latest talk is an early March announcement.

  • Should I wait for the next generation of intel before I purchase my Mac

    I use FCP Studio at work. I also use Studio 8 (Macromedia), but on a PC. I wan't to purchase a Mac sometime in the next year and run FCPS and S8 on it. (Any way they would both run on a laptop?) All of this talk of Universal crossgrades, etc. has me confused. Should I wait for the software to catch up with the hardware? Should I wait for the G5 intels? I'm in no hurry and want to make the right investment. I teach, so we have several different models of Mac - laptops, G4s, and G5s. I need to understand all of this crossgrade stuff before I purchase my own or the school purchase anymore computers.
    I would really appreciate advice from the experts.
    PowerMac G5, (7,3)   Mac OS X (10.4)  

    just to address some of your points:
    All of this talk of Universal crossgrades, etc. has me confused. Should I wait for the software to catch up with the hardware?
    since Apple first introduced the move to Intel there have been some clever blighters installing OS X on their PC's and Windows on their Intel Mac's ... not to mention that it is now never been easier for PC developers to port their software to the Mac platform
    so who knows, there may be a possibility of dual booting your Mac to run both FCP in OSX and Studio 8 in Windows, or if the developers port it, running Studio 8 natively on the Mac ... but not yet.
    there's also speculation about software virtualization, whereby you might run your app regardless of the host OSX ... but again, not yet.
    in the meantime the G5 Quads are spectacular machines in their own right ... wish I had one.
    Should I wait for the G5 intels?
    the laptop MacIntels are getting rave reviews, its safe to assume that the MacIntel desktops/towers will be even more impressive, however the publically announced timeframe for their release is not before the end of the year ... although we're all hopeful that they'll come sooner
    if your current systems meet your needs, if you have no special reason for upgrading, like you are losing work because your facilites are not up to spec (or you just can't wait and have money burning a hole in your pocket) then it would be prudent to wait and see.
    let the bleeding edge pioneers forge the way Jackie, wait for the dust to settle ... the second generation are usually much improved over the first

  • [Solved] systemd does not wait for the unit to finish

    My problem is described in the title. I have made a test by enabling the following unit:
    [Unit]
    Description=/etc/rc.local Compatibility
    [Service]
    Type=forking
    ExecStart=/bin/sleep 1000
    TimeoutSec=0
    RemainAfterExit=yes
    After=network.target
    [Install]
    WantedBy=multi-user.target
    The unit is well started (a process sleep 1000 exists). But with a type=forking, systemd is supposed to hang in this case. Instead, the graphical.target is launched, systemctl list-units mention it as dead, but the display manager is started before the sleep 1000 completes. Ho can I force systemd to wait?
    Last edited by olive (2015-03-16 16:49:34)

    olive, now you're making even less sense. I didn't say the sleep example was stupid and I didn't question your reasons for doing/wanting this.
    I suggested you add "Before=display-manager.service" and you respond "I added Before=graphical.target and it didn't change anything."
    I also tried to explain why systemd has no reason to delay the display-manager.service. You could have asked for further clarification, as berbae has now done. Let's try a longer explanation.
    Service startup
    Services can be started in different ways, as configured with Type=. This determines when a service is considered "started" (or when the service's start-up is considered finished). When a service reaches this state (some time after being started), units that are supposed to start After= this service will be started (and no sooner).
    With simple systemd has no further information about the start-up process. It launches whatever you specify in ExecStart and this is the main process that continues to run till the service stops. systemd assumes this type of service is started immediately. All the other types have some way for the process to indicate to systemd (either directly or indirectly) when it has finished starting.
    Actually oneshot is also a bit special and that is where RemainAfterExit comes in. For oneshot, systemd waits for the process to exit before it starts any follow-up units (and with multiple ExecStarts I assume it waits for all of them). So that automatically leads to the scheme in berbae's last post. However, with RemainAfterExit, the unit remains active even though the process has exited, so this makes it look more like "normal" service with
    begin of unit/startup ---- end of startup ------ end of unit
    This is the relevant behavior for this thread. First sleep starts, then after 1000 seconds, start-up finishes and follow-up units will be started. Then either the unit dies, or (with RemainAfterExit) it stays "active".
    The man page describes how "end of startup" is determined for each Type.
    Targets
    Targets are meant to group units together, to provide synchronization points (and replace runlevels). When you start a target, all its units will be started (in parallel if possible). The man page says:
    Unless DefaultDependencies= is set to false, target units will
           implicitly complement all configured dependencies of type Wants=,
           Requires=, RequiresOverridable= with dependencies of type After= if the
           units in question also have DefaultDependencies=true.
    This means that (by default) when a target is requested, all it units are started first. Only after all units have finished starting, the target itself will be started (and since the target doesn't do anything by itself, this startup is basically instantaneous). Without this dependency, the order between the target and its units is unspecified, so in theory the target could finish starting immediately while its units are still being started.
    Back to olive
    graphical.target has these DefaultDependencies, so it is not started until all its units (like display-manager.service) and other After= dependencies (like multi-user.target) have finished starting. Your sleep service has to be started before multi-user.target starts (again due to default target dependencies). So first display-manager and the sleep service are started and after 1000 seconds, the sleep service finishes starting and then (assuming all other dependencies were quicker) multi-user.target is started and graphical.target as well (assuming display-manager didn't need 1000 seconds).
    If you want display-manager.service after the sleep service, add a Before/After line to specify that (this was your original goal and my suggestion).
    olive wrote wrote:However, units that are parts of the graphical target are still launched before the graphical target become active. I am still unable to completely delay the starts of the graphical target before a specific unit completes.
    It should be clear now how this works. "units that are part of the graphical target" can only mean "units that are wanted/required by the graphical target" but that is basically all the units that are started when you boot your system, because multi-user.target is a part of graphical.target. And your sleep service is a part of multi-user.target, so in fact you're saying you want to delay starting the sleep service until the sleep service completes
    What you probably intended was to delay all units that are a part of graphical.target but not of multi-user.target until after the sleep service. I can't think of an easy (or even good) way to do this and this post is already too long, so I'll table that for now.

  • I'm considering getting an Iphone. Should I wait for the newer model, or get the 4S?

    Hi. My upgrade is coming up for my phone plan in July. I really want to upgrade to some sort of smart phone and have narrowed it down to either an HTC, or an Iphone. I need a new Ipod anyway since I have a second gen Itouch so an Iphone looks like a good deal. I am aware that apple releases new versions of their iphone every year so my question is should I wait until the next model comes out and get it, wait until the next model comes out but get a 4S that drops in price, or get the 4S right away when I become available for my upgrade. I am a sprint user btw. Thanks for your help.

    Waiting (or not) is up to you... no one here knows your situation, wants, needs, etc.  Apple has not announced anything and it's not certain they will release a new iPhone this year.
    All that being said, if it were me, I would wait a few months.

  • Is there any way to not wait for a subVI to output so that the background loop can continue (until the output exists)?

    hello everyone,
    I am in a loop but want to modify an element in that loop. This modification takes time, but i cannot have the loop stop while it is being changed or else the buffer overflows and crashes the computer.
    Is there any way to make the output null until the subVI finishes and actually gives the desired output? This way the loop could continue until the subVI's output is ready.

    Inside the subVI, you can set a condition, for example, if data is not given, set the output to some kind of value (NaN is good for numeric), if data is present, just take it out. But be sure the subVI has no loop to get data, but check data only once. If you need a loop to get data, you'll have to put it in paralell with the main loop.
    Hope this helps

  • I'm having trouble with my iMessages registration. Has anyone had any problems after they downloaded the mountain lion King with that iMessages because mine is not linking to the computer and my phone

    Is anyone else having trouble after thy downloaded Mountain lion x with iMessages mine isnt linking to my computer because it keeps saying i have a  registration error. Has anyone else had this problem or know how to fix it

    HI,
    People who have had computer that has had the Logic/motherboard replaced during repair or refurbishment that has not has the Mac Serial Number Flashed to the board have found that iMessage in particular have not been able to "register".
    A current purchase of Mountain Lion will tend to give you the latest version which as of Thursday (12 th Mar) is OS X 10.8.3
    You can use System Information to find if the Serial Number is there as it appears under the Hardware section.
    If it is missing you need to get to an Apple Store or Apple Authorised Service Provider who can flash the info to the board.
    10:46 PM      Saturday; March 16, 2013
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.3)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • My wife and Iare newbies with iPhone 5s. (Should have waited for the 6.) I have usediTunes for a long time for my iPods, but now we both want to use the iCloud do access different music up there. Any help in doing that? If we can do it, we will be ad

    I'm running iTunes on a PC laptop and ready to move music to an independent hard drive. We want to add more music to it. I have used iTunes for a while for iPods. My wife and I have new iPhone 5S and would like to access the cloud for different types of music, but I will maintain the music in the cloud. (That's my job.) Can 2 iPhones use the same iCloud? We each have different Apple ID's. Thanks.

    Music in the cloud is managed by the separate iTunes Match service ($25/year US). You would sign up to it on the PC, and your music library would be matched with the iTunes Store, and high quality versions of all songs would become available to you on any device also signed into iTunes Match. You should not delete your local copy from the PC, since you should retain a master version of all songs for safety.
    You can use the same iTunes Match service, but you'd see the same music (you say you "would like to access the cloud for different types of music", but I'm not sure what you mean by that).
    Matt

  • Should I wait for the 5th gen iPod Touch or keep my 64Gb 4th gen and not return it?

    Bought a 32Gb iPod Touch and while it was being shipped I realized I'm going to need the 64Gb's if I plan on removing the music off of my 64Gb iPhone and putting it on the iPod and using my iPod as my music source. So I took it ot the Apple store last night and swapped it for the 64Gb. Well I got to thinking, this thing is just over a year old - a new one HAS to be on its way in the near future, right? Certainly they wouldn't go a full two years to refresh the iPod's with the A5 chips that have been out almost a year already. If they were to go with another September launch for the iPod but next year the A5 chip is almost irrelevant by then, A6 will be in the iPad 2S/3, A6 will be in the next iPhone ----- and then the old A5 would just be dropped into the iPod? Just doesn't make logical sense to me. I believe an iPod refreshment will be launched fairly soon, maybe a long side the next iPad release? What do you guys think? The way I'm just seeing it is that I don't really need the iPod right now, so that $400 credit could be used for even double the space the 64Gb has for the same price when the 5th gen launches? And whatever other bells & whistles the 5th gen will offer. I'd feel stupid for paying the $400 knowing I don't need it quite yet and that a refreshment could possibly be on the way soon. Thoughts?

    It is all up to you.  I have not heard any announcement from Apple about a 5G iPod touch.  SInce you do not "need" then wait.

  • Should I wait for the refresh?

    Hi,
    I'm 14 year old filmmaker.
    Around a month ago my late 2006 imac broke down, and I am now without a Mac desktop. I am seriously considering a mac mini, because it's the cheapest, upgradable, mac out there. I would be using a lot of graphics-card hungry applications such as Adobe Premire and After Effects. I heard bad things about the mini's current Intel HD 4000 graphics, and wanted to now if it's worth it waiting up to another 4-6 months tops for a POSSIBLE mac mini refresh. (New wifi, Haswell  Graphics.)
    I am pretty desperate for a computer for my filmmaking. I've already been waiting for about 4 months, and  I was really disappointed to hear apple didn't refresh the mini at their October 22nd. event.
    I just don't have the cash for a new imac.
    Buy the Mini now?
    Or wait until the refresh?
    (Any guesses about that release?)
    Thanks.

    No one here has any idea when a new Mini
    will be released or any idea of what sort of configurations
    will be available.
    FWIW, the Haswell line can have two types of integrated
    graphics, Iris and Iris Pro.  Which will be in the new Mini
    or if there will be any choice is unknown. 
    If you need to know if either graphics options would be useful,
    Google Iris nad Iris Pro and see what others are sayng on
    machines already released with these.

Maybe you are looking for