Fire a sub vi and keep running from the main

I would like to run a sub vi (Finite Pulse Train.vi) and keep going in my main application.  Finite Pulse Train has a while loop so it takes over and my main vi waits.  Can I fire off Finite Pulse Train.vi and then come directly back to my main vi (let it do its thing)?

Also remember that LabVIEW has parallelism inherently built into to its compile process. This means that if you drop your subVI onto the block diagram and then don't connect it in any way with the rest of your program, it will automatically run in parallel and just "do its thing."
The key then is just to establish communication between parallel processes. The easiest, but least robust, method of doing this is to use local or global variables. You could, for instance, have a global variable for your stop button in your main loop that stops the subVI's loop.
The better solution (if you don't have the base package of LabVIEW) is to use Queues and Notifiers to handle synchronous data transfer between parallel loops. Queues essentially act like a software buffer that you can write data to and read data from. Queues are best for communication with one or more producer loops and only one consumer loop, since as soon as you "read" data from the queue, it is removed. Notifiers only hold one data item, so there's no buffering, but it can be read by multiple consumer loops without removing the data item. Notifiers are best for communication between loops with just one producer and multiple consumers.
Search the Example Finder for examples of everything mentioned here. Hope this helps!!
Jarrod S.
National Instruments

Similar Messages

  • My ipod 5th gen ios 7.0.6 crashed and keeps going from the apple logo, going to a black screen, back to the apple logo, then back to the black screen and so on. Furthermore, my laptop doesn't recognise that the iPod is connected. What do I do?

    My ipod 5th gen ios 7.0.6 crashed and keeps going from the apple logo, going to a black screen, back to the apple logo, then back to the black screen and so on. Furthermore, my laptop doesn't recognise that the iPod is connected. What do I do?
    Please help me out as this is very irritating. This has been happening for the last 20-30 minutes. It had roughly half battery left.

    Try:                                               
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try another cable       
    - Try on another computer                            
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
      Apple Retail Store - Genius Bar                              

  • I have 2 Macs - an iMac that holds my entire iPhoto library and a Mac Book Pro that I use to hold a subset of the main library - how can I transfer photos and their metadata from the main library of the iMac to my Mac Book?

    I have 2 Macs - an iMac which holds my main iPhoto library and a Mac Book Pro which holds a subset of the library. How can I transfer photos and their metadata from the main library to the smaller 1 on the Mac Book Pro?

    Link the two Macs together and use iPhoto Library Manager
    Regards
    TD

  • How to add a privacy page and exclude it from the main menu, but include in links at the base

    adding a privacy statement page and excluding it from the main menu, but including in links at the base of site

    Right click on the page in Plan view and choose to exclude from menus. This will take it off your main nav.
    For your bottom nav, change the menu to manual and add the privacy page manually.

  • The bottom rubber case of my macbook 13" late 2009 has expanded and has detached from the main body..As i'm not presently under warrantty i wanted to know will the repair be free of charge for me. I had once got it replaced for free but in warranty.

    The bottom rubber case of my macbook 13" late 2009 has expanded and has detached from the main body..As i'm not presently under warranty i wanted to know will the repair be free of charge for me. I had once got it replaced for free but in warranty. As i read some where in the support that apple had agreed with the defect and had decided to replace the bottom covers without any charge. And even if i'm charged for it what will be the amount  will hav to pay for it..
    Thankx

    Hi,
    Here's the Bottom Case Replacement Link
    http://www.apple.com/support/macbook-bottomcase/
    It doesn't answer your specific questions about cost... but it does advise to contact an Apple Store or an AASP...
    Anyway have a look at it... if you haven't already..
    Cheers and Good Luck...

  • Trying to move my iTunes Music and other media from the main drive on my pc to an external hard drive but iTunes is not recognizing the new file location?  Ideas?

    Trying to move my iTunes Music and other media from the main drive on my pc to an external hard drive but iTunes is not recognizing the new file location?  Ideas?

    Hello there, Underwriter.
    The following Knowledge Base article provides in-depth instructions on how to migrate your content to an external drive:
    iTunes: How to move your music to a new computer
    http://support.apple.com/kb/ht4527
    Particularly of note for your situation:
    External drive
    This option requires more work than Home Sharing, but it creates a backup of your iTunes library on the external drive in addition to moving your content.
    Notes before you start:
    You can use most iPods as an external drive.
    Windows operating systems don't recognize Mac OS-formatted disks (HFS or HFS Plus formats). Because of this, you can't use a Mac-formatted iPod or external drive to move your music to a Windows PC. See iPod: How to determine iPod's hard disk format if you're not sure how your iPod is formatted.
    Mac OS X can read Windows-formatted iPods and drives. This means there are many ways to migrate your information from your old Windows-based PC to your new Mac.
    Mac OS X: To be sure external drives appear on your desktop, choose Preferences from the Finder menu. Be sure the options for "External disks" and "Hard disks" are enabled.
    Part 1: Locating and consolidating the iTunes Media folder
    Part 2: Copy iTunes folder from the old computer:
    Part 3: Get iTunes ready on your new computer
    Part 4: Back up any music that's already on your new computer
    Part 5: Copy music to your new computer
    Part 6: Add preexisting music that was on the new computer back into the library
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • My Macbook pro can't turn on and keep running on the blank screen

    Pls help to advise how can I turn on my Mac Pro, as I was connected to my Hard disk over the night, and next day the screen went blank and I push the button to switch off my Mac Pro and trying to turn on again but was blank screen with the Fan running non stop over hours and still no tuning on. Please advise. Thanks

    This defines Target Disk Mode:
    http://support.apple.com/kb/PH10725
    Though not guaranteed, the chances are good that the data can be recovered.
    Ciao.

  • My iphone 5s keeps changing time on its own and keeps disconnecting from the wifi and cellular data. All other devices are connected and working. Is it a virus?

    What can i do to fix it? My husband suggests I reset my phone but I'm afraid my data will be wiped off an that would be of total waste if the problem doesn't even get solved. Your help would be much appreciated!

    There is no known malware capable of infecting an iPhone that has not been jailbroken (ie, hacked to allow apps from outside the App Store). If you have jailbroken it, you have exposed yourself to malware, and should restore the phone to factory defaults, without restoring a backup. All data will be lost, but that is unavoidable.
    Most likely, you haven't jailbroken it, in which case you don't have to worry about malware. In that case, it's hard to say what's going on, but there are some things you can try.
    First, try resetting your device. Press and hold both the home button and the sleep/wake button for about 10 seconds, until the screen turns off. Ignore the slider that will appear. Release the buttons, then press and hold the sleep/wake button until the Apple logo appears. This is the equivalent of a reboot, and should not affect your data or apps.
    If that doesn't help, try restoring your device from backups, and if that doesn't help, restore it to factory settings (ie, do not restore a backup). See:
    http://support.apple.com/kb/ht1414
    If none of that helps, the issue is caused by some kind of hardware problem, and the device will need to be repaired or (more likely) replaced.

  • Disconnected cable that runs from the mainboard to the headphone part

    Good Evening! I am looking for help with a problem with my 4th generation ipod. Since it is no longer under warranty, I decided to replace the battery on my own and in doing so, the cable that runs from the main board to the headphone part disconnected. Is there any way to reconnect it and get my ipod running again? I've looked all over the internet for the past 2 hours and have not found relavent information to my problem. Any help would be greatly appreciated.

    This is the forum for the new iPod Classic, not quite the right place foy your post. However, the best source of information for troubleshooting and take-apart guides is ifixit <http://www.ifixit.com>.
    Good luck,
    bd

  • When making a call, sometimes, my iPhone 5 , gets stuck on 'Calling' than I have to press END..but still nothing happens, than when I press HOME button, the call app keeps running in the background and it keeps saying CALLING... please help

    When making a call, sometimes, my iPhone 5 , gets stuck on 'Calling' than I have to press END..but still nothing happens, than when I press HOME button, the call app keeps running in the background and it keeps saying CALLING... than I have to wait 2 - 3 minutes and call again.
    please help

    Has nothing to do with the SIM or master reset.  This has been done to my phone.  The SIM once and the factory reset many times over.  You all just sold us a bad piece of equipment and have us by the tail with our contracts so none of us can get a new phone without paying full price or re-upping our contract.  I just got off the phone last night with your high up tech people (you know, the hidden number we get once we tear into your support people enough), they went into my phone again and still didn't find anything wrong.  I about got fired from my job for not getting my calls and texts.  The BBB has now been contacted, and I feel your end should shore this up for all of us!

  • Problems with executing customized Run-Time menu from a sub-vi imported from the main vi.

    I am having trouble executing Run-Time menu from the sub-vi.
    Currently my main vi program, which is the first thing that I open up to acquire data from different sources (i.e. dll’s, scanners etc.) opens up a number of sub-vi’s.
    I have created several sub-vi’s, which are opened from the main vi’s customized Run-Time menu that I have created (i.e. dsp file). I am using the open panel.vi to open other sub-vi’s. I don’t have any problems opening any number of sub-vi’s through the main vi’s menu.
    I would also like to have the option to open other sub-vi’s from any sub-vi’s menu. I succeeded in exporting the Run-Time m
    enu from the main vi to the sub-vi using the property node properties however nothing happens (I hear a beeping sound) when I click on the sub-vi’s menu. I don’t know what I am doing wrong. I would really appreciate it if someone can attach a sample code using Run-Time menus on sub-vi’s imported from the main vi.
    Thanks
    Nish

    I don't actually have any VIs like this. It might be easier to take the menu and just add it to the VI during development. Then it will always be there. It might be easier than doing this with Property Nodes.
    J.R. Allen

  • In Pages 5.2.2: How do you go from 1 column to 2 and keep them on the same page?

    In Pages 5.2.2: How do you go from 1 column to 2 and keep them on the same page?

    Sorry, I tried to say your answer solved my question, but I guess I told it that my response to you solved it. Now that I liked it, the solved option doesn't appear.

  • I just set up a new computer running Windows 8.1. When I go to my icloud photostream, the pictures are in PNG format NOT JPG. When I open and upload photos from the photostream, the resolution is so low that the image quality is terrible. Help?!?

    I just set up a new computer running Windows 8.1. When I go to my icloud photostream, the pictures are in PNG format NOT JPG. When I open and upload photos from the photostream, the resolution is so low that the image quality is terrible. Help?!?

    Hey Sierra, You can do just what you have stated. My question, what is your "other"? If it is over 1.5 GB you most likely have corrupt files. Doing a Restore to New, Factory restore should correct it. Just make sure you make a full backup of all information on your iPod to your computer before you restore, so you don't lose your stuff, contacts, videos, pictures, non-iTunes music, etc, use the cable and connect with your computer. Then, via cable, connect to your computer, run the Restore to new, don't use your backup. Treat this iPod as if it was your first one ever. When restore is done, set up and add what info you wish to install on this iPod. The music apps etc you purchased should be on your computer, if not you should be able to retrieve purchased apps and music from iTunes. Any music, videos, apps not purchased from iTunes will be lost to you if you do not save them to your computer or the cloud first. When your done, make a current Backup and you should good to go. Hope this helps. Good luck. Cheers.

  • Mac OSX 10.6.8 running Photoshop CS5. My hard drive went belly up. Installed a new one and then tried to install Photoshop from my backup. I get an error message 6 telling me to uninstall Photoshop and then reinstall from the original software. But I boug

    Mac OSX 10.6.8 running Photoshop CS5. My hard drive went belly up. Installed a new one and then tried to install Photoshop from my backup. I get an error message 6 telling me to uninstall Photoshop and then reinstall from the original software. But I bought from Adobe online. How do I go about this?

    Yes, the Old Master file has a folder for each year where I find all photos from that specific year. I am attaching a screen shot of the file.
    In the meantime i have managed to download all photos (it did not download any video files though in mpg, avi, 3gp, m4v,mp4 and mov format) to a new iphoto library. Unfortunately the photos are quite mixed and often doubled up. I ma considering to purchase iphoto library which checks all duplicates in iphoto. this will save me a lot of time. What do you think?

  • In Preview, when I add text annotations to my PDF (lecture note slides), they look fine until I close it and reopen it, and then they are rotated 90 degrees. How do I fix this and keep it from happening again?

    In Preview, when I add text annotations to my PDF (lecture note slides), they look fine until I close it and reopen it, and then they are rotated 90 degrees. How do I fix this and keep it from happening again?

    I have the same problem with lectures slides.
    Furthermore, sometimes the text box, when doube-clicking, turns  the text into a one-liner. Causing the text box to sometimes get 3. times wider than the pdf itself.
    tcrother wrote:
    ... then when it rotates the text isn't visible and I'm stuck clicking on random parts of my lecture slides hoping the text box will come back. ...
    By pressing [cmd + I] the Inspector opens up and clicking on the rightmost tab 'Annotations' you should be able find those Annotations again. I do this regularly to find the empty annotations I accidentally create while clicking through slides.

Maybe you are looking for

  • Nokia E5 email update and now can't read email

    Hi, I downloaded the nokia email 3.21 update last night, and turned the phone off and on again as per instructions but now I can't read my emails (hotmail account)  as they just come up a load of jumbled letters and symbols, anyone know how to fix th

  • Cheque Payment Advice Configuration Steps

    Dear gurus, Can anybody provide for config of cheque payment advice & necessary steps for printing. Regards, Reddy

  • Print Images using FOP

    Can we print images using FOP by taking it from the database ? Iam using the FOP and outputing to a PDF. However, I have an image that I would like to print. The image is stored in the database as a BLOB. How can I print this image in the PDF documen

  • Problems with filter exception using Network IP range

    We are using a spam filtering service for out incoming email. As such, all our email is directed to our SMTP server from their IP address range. We employ a dual firewal set up. We have a Netscreen firewall connected to the Internet and the Border Ma

  • File Transfer

    How do I transfer a PDF file from my desktop to my ipad? I do have ibook and other reading apps.Its the user guide for ipad2. thanks