How do I run two sub-VIs in parallel and have the faster VI continue to execute while the slower one completes?

I have two sub-VI's - one that makes a laser distance measuring device turn on and return a distance, and another that moves a platform upon which a target is mounted that the laser reflects against. The laser VI takes well under 5 seconds to complet. The platform-moving VI, on the other hand, requires about 30 second. I would like to be able to have the laser on AS the platform moves. Of course, I can accomplish this by running the VIs seperately. However, I would like to control them from a master VI. Currently, the laser turns on as the platform begins to move but then turns off, since the master VI waits on the platform-moving VI to
complete. Any help with this seemingly simple dilemma would be greatly appreciated.

In order to synchronize the two VI's I would recommend using a global variable. By creating a global boolean, you can make reference to it in both programs, and control when your "laser" subVI terminates.
Basically, have your "laser" subVI wait until the global boolean goes true to stop execution. Have the boolean initialized false, and then have your "platform" subVI write a true to the global boolean when it has finished running. This will keep you laser running until the platform has completed its move. Good luck!

Similar Messages

  • Running two sub vis in parallel

    I need to run two sub vis of a main vi simultaneously in parallel.
    one sub vi is to run a demo and the other subvi is an application.The demo should run as a small window and the application should run in background

    As i said
    "If you have the demo vi as floating and the other vi as Default (not floating), the demo vi will allways stay on top"
    If you still have problems, just post your vis, (without any unnecessary code), or ask something specific
    Message Edited by Pnt on 04-21-2009 08:18 PM
    Attachments:
    Clipboard-2.jpg ‏44 KB

  • How can i run two firefox's so i can have both my face book acounts open at the same time without one logging in to the other

    as you can see, im trying to have two firefox windows open so i can have both my facebook accounts open at the same time on the same pc
    all i get just now is they both log in to there user but ass soon as the page refreshes one drops its user and logs into the other

    Try of of these extensions for multiple cookie sessions.
    Multifox: <br />
    http://br.mozdev.org/multifox/ <br />
    Cookie Swap extension: <br />
    https://addons.mozilla.org/firefox/3255/ <br />
    Cookie Pie extension: <br />
    http://www.nektra.com/oss/firefox/extensions/cookiepie/

  • How to run two sub vi simultaneously??

    i need to run two sub vi simultaneously in one main vi, becasue it is a must the two sub vi run exactly at the same time, but now i find that if i put they in one diagram ,in fact they are not exactly run at the same time. if you see in high light mode Just like the attached simple example code.  any one can help me to handle this to run the two subvi exactly at  the same time ? how to do it ? thanks so much.
    Attachments:
    how to run subvi simultaneously.vi ‏11 KB

    You are correct, they will not run at exactly the same time.  What is it you are actually trying to do?  What platform are you developing on? What version of LabVIEW? What processor does your target system have? This information is vital in order for us to assist you.  In a nutshell, unless you are running a real-time OS, then the OS you are running is not deterministic.  When you say "at the same time", what are you actually referring to? As a note, when executing parrallel operations in LabVIEW, the execution order may or may not be the same with the highlight bubble on as it is when it is running without highlight execution.  It is highly unlikely that you will be able to just run two sub-vis at the exact same nS.  If you are using DAQ boards, you accomplish this through triggering.  Please give a detailed description of what you are doing, and what you see the road blocks being.
    Thanks
    Paul <--Always Learning!!!
    sense and simplicity.
    Browse my sample VIs?

  • How do i run two threads with different sleep times?

    How do i run two threads with different sleep times?
    Ive got thread A and thread B, they both update a jpanel.
    They both start when i press the start button.
    However thread A updates every 250ms and thread B updates every 1000ms. i cant just run them both at 250ms becuase this will mess it up.
    So for every four runs of thread A i want thread b to only be run once
    Does anyone know how to do this?
    Thanks, Ant...

    ok, ive done it but now i cant stop it!
    ive added buttons to start and stop, the start button works but the stop button doesnt. why doesnt "t.stop();" work?
        public void run() {
            while(t == Thread.currentThread()) {
                System.out.println("No " + t.getName());
                if (t.getName().equals("1")){
                    try {
                        t.sleep(1000); // in milliseconds
                    } catch (InterruptedException e) {}
                } else{
                    try {
                        t.sleep(250); // in milliseconds
                    } catch (InterruptedException e) {}
        }

  • HT1347 How do I run two libraries from one computer?

    How do I run two libraries from one computer? One library is on the computer's hard drive, the second library is on an external hard drive. The computer that had the external hard drive crashed and I need to fix the iTunes library on it. How can I do this without corrupting the library on my internal hard drive?

    Launch iTunes with the Shift key held down and either create a new library or choose the one on the external drive. Any rented movies downloaded from another computer won't play.
    (81212)

  • How do I run two tomcat on one webserver

    How Do I configure webserver to run two tomcat server.
    thanks

    make sure u have two seperate directories for tomcat.
    then edit one of the server.xml file and change the following port numbers 8080,8443,8009,8082 and 8081 to which ever port number u wish the second tomcat to run.
    For load balancing and fail safe settings, u will have to look at the documentation as this involves further settings to take care of
    good luck

  • I am running on OSX 10.10.1 and have a 2009 imac intel and I am having severe latency issues.  I am not familiar with macs as this is my home computer used by other family members.  Any help on how to troubleshoot why such latency issues?

    I am running on OSX 10.10.1 and have a 2009 imac intel and I am having severe latency issues.  I am not familiar with macs as this is my home computer used by other family members.  Any help on how to troubleshoot why such latency issues?

    When you see a beachball cursor or the slowness is especially bad, note the exact time: hour, minute, second.  
    These instructions must be carried out as an administrator. If you have only one user account, you are the administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    The title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen.
    Each message in the log begins with the date and time when it was entered. Scroll back to the time you noted above.
    Select the messages entered from then until the end of the episode, or until they start to repeat, whichever comes first.
    Copy the messages to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    The log contains a vast amount of information, almost all of it useless for solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    Some private information, such as your name, may appear in the log. Anonymize before posting.

  • How do I select two-sided printing now that I have Adobe Reader? I didn't know it would change my pr

    How do I select two-sided printing now that I have Adobe Reader? I didn't know it would change my print function at all and am curious why it does. My HP printer always did this and on the old screen there was a check off box for two-sided printing. Thank you!

    Hello Mickeyps
    What's the Adobe Reader version at your end? I am using Reader 11.0.06 and I do see this option. See below.
    Regards,
    Deepak

  • I have a Mac running OS X 10.6.8 and have installed all updates and disabled Java Applets.  Do I need to put virus protection on this computer and, if so, any recommendations?

    I have a Mac running OS X 10.6.8 and have installed all updates and have disabled Java Applets.  Do I need to install antivirus software and, if so, do you have a recommendation on what works best.

    Mac OS X versions 10.6.7 and later have built-in detection of known Mac malware in downloaded files. The recognition database is automatically updated once a day; however, you shouldn't rely on it, because the attackers are always at least a day ahead of the defenders. In most cases, there’s no benefit from any other automated protection against malware.
    The most effective defense against malware is your own intelligence. All known malware that affects a fully-updated installation of Mac OS X 10.6 or later takes the form of trojans, which can only work if the victim is duped into running them. If you're smarter than the malware attacker thinks you are, you won't be duped. That means, primarily, that you never install software from an untrustworthy source. How do you know a source is untrustworthy?
    Any website that prompts you to install a “codec,” “plug-in,” or “certificate” that comes from that same site, or an unknown site, merely in order to use the site, is untrustworthy.
    A web operator who tells you that you have a “virus,” or that anything else is wrong with your computer, or that you have won a prize in a contest you never entered, is trying to commit a crime with you as the victim.
    “Cracked” versions of commercial software downloaded from a bittorrent are likely to be infected.
    Software with a corporate brand, such as Adobe Flash Player, must be downloaded directly from the developer’s website. No intermediary is acceptable.
    Disable Java (not JavaScript) in your web browser(s). Few websites have Java content nowadays, so you won’t be missing much. This setting is mandatory in Mac OS X 10.5.8 or earlier, because Java in those versions has bugs that make it unsafe to use on the Internet. Those bugs will probably never be fixed, because those older operating systems are no longer being maintained by Apple. Migrate to a newer version of the Mac OS as soon as you can.
    Follow these guidelines, and you’ll be as safe from malware as you can reasonably be.
    Never install any commercial "anti-virus" products for the Mac, as they all do more harm than good. If you need to be able to detect Windows malware in your files, use ClamXav — nothing else.

  • I am running Snow Leopard on my iMac and have partitioned my hard drive to run Windows XP. If I upgrade to Yosemite, will I still be able to run XP?

    I am running Snow Leopard on my iMac and have partitioned my hard drive to run Windows XP. If I upgrade to Yosemite, will I still be able to run XP?

    bobfromnorth battleford wrote:
    ...Now what happens if I upgrade to Yosemite on either my iMac or my MBPro?
    If I install VM Fusion or Parallels, does Windows run all the time? How does that affect computer performance? and how much do I need to worry about hard drive corruption?
    Current versions of Fusion and Parallels are compatible with Yosemite. Both are applications which you only run when you want to run Windows within them. As such, there's no effect on computer performance when they're not in use. Like any other software, there is some additional load on your Mac when both Windows and the Mac OS are running together, but any noticeable effect depends on what each is being expected to do and what resources (e.g. available RAM and the number of CPU cores) you can devote to each.
    I think there's less chance of HD corruption with a VM than there is with running Windows natively on the Mac in Boot Camp. Consider that, with a VM, you can create Snapshots of the state of your VM at a given time, and then, if something goes wrong (virus, malware, software installations), you can simply restore the Snapshot in a matter of seconds and eliminate the problems in the process. Moreover you can make a backup copy of the entire VM file, and replace a later version if you wish. Also consider that you can assign, say, 100GB of HD space to the VM, but the actual space devoted to the VM is only what's actually used; as more is needed, more is made available and Windows can't tell the difference. So, for example, my Win 7 Pro VM has an 80 GB virtual HD but only takes up 45 GB on my SSD, and that's with XP Mode in VPC installed inside it.
    Microsoft no longer supports XP, though virus signature updates are still being issued. But MS has installed a pop-up message about EOL that won't go away (it's installed with KB2934207). Even if you remove that KB in Add and Remove Software, the pop-up continues. But if you have a Snapshot or a backup which is prior to it's original installation, you can skip installing KB2934207, and suppress it's reappearance on a Software Update list.

  • How to I get rid of this on my screen? "In order to continue installation, please close the following application: iPhoto"

    How do I get rid of this on my screen? "In order to continue installation, please close the following application: iPhoto"
    Just popped up...grr

    tried that too.  I rebooted and it was gone, mmh, but anyway glad it's gone

  • How do i put a box in my form and have consecutive numbering in it

    How do i put a box in my form and have consecutive numbering in it

    Hi,
    Sorry, this is not supported in Adobe FormsCentral.
    Thanks,
    Lucia

  • How do I stop needing to scroll both horizontal and vertical in my folders to see all of the content.

    How do I stop needing to scroll both horizontal and vertical in my folders to see all of the content.

    There is no cancel button.
    I don't see a download all button that will download everything from iCloud anyway. The download all button that I see refers only to the particular artist or album that you select from the left had side. I see no download all button for TV Shows or Movies.

  • I have a g4 powerbook 12" 1 gig processor running os 10.3.9 . I have conflicts with anything google. What is the highest os version i can install ?

    I have a g4 powerbook 12" 1 gig processor running os 10.3.9 . I have conflicts with anything google. What is the highest os version i can install ?

    Mac OS X 10.5 Leopard installation system requirements
    http://support.apple.com/kb/TA24950
    Leopard is no longer available at the Apple Store but may be available by calling Apple Phone Sales @ 1-800-MY-APPLE (1-800-692-7753).
    If you can't obtain a retail install DVD from Apple, look on eBay or Google the installer part numbers to possibly find at an on-line store. Here's what to look for:
    MB427Z/A  Leopard 10.5.1 install DVD
    MB576Z/A  Leopard 10.5.4 install DVD
    MB021Z/A  Leopard 10.5.6 install DVD (single user)
    MB022Z/A  Leopard 10.5.6 install DVD (5-user family pack)
    Installing Mac OS X 10.5 Leopard
    http://support.apple.com/kb/HT1544
    Mac OS X 10.5 Leopard Installation and Setup Guide
    http://manuals.info.apple.com/en/leopard_install-setup.pdf
    After you install the base 10.5, download & install the 10.5.8 combo update at http://support.apple.com/downloads/Mac_OS_X_10_5_8_Combo_Update
     Cheers, Tom

Maybe you are looking for

  • Haven't been able to use MyKuler for months.

    Hi!  I used to really like using Kuler.  Then, a few months ago, something went haywire, and I was no longer able to use MyKuler at all.  I haven't been able to use it, since.  I use both the website AND the desktop application (and CS5.5 integration

  • How 2 create dynamic internal table and can we pass it to gui_download FM

    HI all,      How can we create a dynamic internal table? I have a requirement where  i have to create an internal table with the no. of fields depending on the selection screen values, i think tat can be possible though dynamic creation only.        

  • Calling an HTML function from PL/SQL stsement

    The pl/sql statement below is in attempt to raise an alert window whenever a new record is added to the database by an automatic page refresh. Pls help me edit the statement below to call a HTML function named attention()from within the pl/sql statem

  • Slow loading from internal HD

    My iMac seems to have started taking ages to load so I tried loading from an external Firewire drive (a copy of the iMac HD made using SuperDuper Backup). The results were as follows (approx): 1) From entering password to answering mouse click iMac i

  • Mounting drives

    Fairly generic Linux question but does my non-root user have to belong to any specific groups to be able to mount the disk drive and usb drives? Whenever I try to access one as my non-root user I get a "Not Authorized" message box (in GNOME).