What is the best way to run two process in one VI

Hi all...
I'm trying to run two process in the same VI at the same time, which do different operations.
One loop collect data from COM port, the other loop collect data from sound card. And two process should work independently.
So can I simply put two while loops in the VI?
The attachments are my VIs. 
Thank you!!
Attachments:
AC_Radar_Receive.vi ‏81 KB
RadarAudioPlug.vi ‏435 KB

You haven't said what your long term goal is, but putting two loops in the same VI that are doing different things is a poor design choice. The problem is that it limits your options for reusing or expanding your code. Queues, events and notifiers all work equally well whether the processes are in a single VI or spread across a dozen VIs.
Mike.. 
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

Similar Messages

  • TS1474 What is the best way to run two iphones on the one computer?

    I have recenty upgraded to an iphone 5 and my husband has taken over my 4S. However when trying to sync on itunes found even with different log ins for itunes some of my mail and photos ended up on his phone.
    Have duplicated ITunes as a copy for one phone and still some data crosses over. What is the best method?
    Laptop does not ahve library of our music installed to use as option.
    Would apprecaite advice.

    More than likely, your issue is sharing of iCloud information.  You can run as many phones, iPads, iPods, etc as you want on one PC without issue.
    Make sure you under Settings > iCloud that you have different IDs.  You should also use separate Apple IDs, which can still sync to the same PC.

  • What is the best way to run two programs simulataneously using the output from one to run the other?

    I just kind of wanted to get an opinion from some people on here. I have two main VIs. The first is a DAQ system that reads 99 different sensors and feeds that data into an array. The second is a real-time processing system that is designed to take the array and do numerous calculations. Both VIs output data to the front panel that I want to see, so I don't want to just use one as a SubVI.
    Is there a simple way to run both VIs, using the output from the DAQ system to feed the processor so that you can easily see the front panels of both VIs? I had considered just copying the real-time processor code into the DAQ VI, but I'm worried the resultant VI will be very large and unsightly.
    On a side note, am I over thinking this? Excuse me if this is a rather dumb question, it's been a long week...aaaand it's Wednesday.
    Solved!
    Go to Solution.

    There are a number of ways that you can go about this, but having both front panels open isn't a problem (assuming there is screen space!). Both could be sub-vi's of another "calling" vi, with their front panels set to open when called. The data from the DAQ side can be sent to the other through a number of ways, "producer-consumer" (many threads about this topic, examples in the LabVIEW examples, etc.) is one of the more robust techniques. If created correctly it allows one to run at a different rate than the other, although if the producer is "producing" much faster than the consumer can "consume" it will end up with problems.
    I guess I type too slowly
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion

  • What is the best way to run .exe files on my mac?

    What is the best way to run .exe files on my mac? I need to run some updates for my john deere gps and the downloads i get can only be run on windows.

    There are several options for running Windows software (*.exe files) on a Mac, depending what your program is, how often you use it, and your personal preferences.
    One way that does not require Windows is an open source effort called WINE.  Check out winehq.org.  You may find that that's all you need for your programs.  There is also a commercial effort that has grown from WINE, and you will find info about it on the site mentioned.  These DO NOT require that you have and install Windows.
    If you want to run sessions devoted only to Windows software, and want programs to run as fast as they do on a PC, the Apple's Bootcamp program is useful.  With it you dedicate a partition on your hard disk to windows, and on startup choose to either boot into OS X or Windows.  Each runs without any connection to the other.  This requires you have a copy of the Windows software as well as the applications you want to run. 
    If you want to be able to easily exchange data between your Windows and Mac programs, and skip back and forth between the two, there are several emulators available that run on Mac OS X and create a Windows environment where many Windows programs can operate along side Mac programs.  Parallels and VMwear are two comercial packages available for purchase and Virtual Box is an open source effort available for free.  Google will find all three for you.
    My only experience is with Virtual Box.  It is slow and a bit clunky, but it is free and meets my needs for the very few "just got to have" windows programs I sometimes use.
    Google is your friend on this and can provide a lot more, and better, information than I can.
    Best of luck,
    Ray

  • What is the best way to run windows on my mac?

    What is the best way to run windows on my mac?
    I have a particular program that i need to run, and it only runs on windows. I have a macbook pro

    As Templeton noted, it depends and will at least be somewhat subjective. 
    There are basically three options out there.  You can use a Windows emulator (Wine or the commercial version of it, Crossover Office), use Boot Camp to "dual boot" or use virtualization software (Parallels, VMWare Fusion, or VirtualBox).  Each has its advantages or disadvantages.
    The Windows emulators have the advantage of being the one option that doesn't need the purchase of a copy of Windows.  Unlike Boot Camp, but like the virtualization options, this allows you to run Windows programs and OSX programs side by side.  The big problem, though, is that it is the least compatible option--a lot of Windows software either has "issues" or will not function at all.  The Crossover website has information on which programs are known to work and how well they are known to work. 
    Boot Camp is the option that Apple ships OSX with.  You'll need a copy of Windows to install into the partition.  You'll effectively divide your disk into two parts and have two machines.  The major advantages are, first, you don't need to acquire separate software *AND* the Windows license.  As well, it's the highest performance Windows system.  What you have is truly a Windows machine.  That's both the good and the bad--you aren't going to be able to use OSX software at the same time, and you have to reboot to get back to OSX.  I've always thought it was best for someone who likes the Apple hardware and wants to use it for a Windows box--in that case Boot Camp is clearly a great solution.
    Finally there's virtualization which seems to be the most popular way to handle Windows, especially if you need to run one vertical market package.  It has the advantage of allowing you to use your OSX software at the same time, and the virtualization gives an extremely high level of compatibility.  About the only thing that won't run is a virtualization package (and there's not a lot of reason to run that in a Windows VM).  There is a performance hit compared to Boot Camp, but it's minimal for all but the most demanding applications (that being high end games). 
    It will chew up RAM on the OSX machine, but if you have at least 4 GB of RAM it will probably be manageable, especially if you only need to run one Windows program.
    You will need both a virtualization program (there are three major ones) and purchase Windows.  Two of three programs are commercial packages (Parallels and VMWare Fusion), while the other is an open source option (VirtualBox).  Virtual Box has the advantage of being free, but it's by far the least polished of the group.
    Which way is best?  As was noted, it depends.  I run VMWare Fusion on my machines, and I have used CrossOver Office for limited purposes.  I've not yet seen, in my use pattern, a reason to go to Boot Camp but I certainly can see cases where it might make sense.

  • What is the best way to run Sage on a MacBook Pro?

    What is the best way to run Sage on a MacBook Pro?  I am a first time Apple user.

    There's a lot of Sage out thete so fill us in with information. If it runs on Windows then you'll need to create a partition on your mbp using boot camp and install Windows. So what is Sage for you?

  • What is the best way to run windows on my Mac? And What are the pitfalls I should watch for?

    What is the best way to run windows on my Mac?   What are the pitfalls/

    If you need Windows as your main operating system you would be better off buying a Real Windows PC.
    Running windows on a Mac is always a compromise. Whether in a Boot Camp partition or in a Virtual Machine.
    In boot camp you can't easily Re-Partition and or Re-Size the drive it is installed on. You can't use both graphics cards as Apple has limited Windows to use the discrete graphics only, that is if your mac has 2 graphics cards (15" MBPs), which will shorten the battery run time in Windows.
    The trackpad only has limited functions in Windows, less then is available on the Mac side and a real Windows PC.

  • What's the best way to run Logic Pro from external hard drive.

    What's the best way to run logic from external hard drive

    Hi
    Organism wrote:
    Logic is designed to run from your Applications folder. I suspect if Logic was moved to an external drive, it might not be able to locate its assets, like loops and libraries.
    As long the necessary files are in the correct places on the boot disc, you can run the Logic application itself fom wherever you like. It would not be recommended however, and there would be very little benefit (if any) in doing so.
    CCT

  • What is the best way to transfer home videos from one mac to another?

    What is the best way to transfer home videos from one mac to another?

    hustonsmom wrote:
    the commercial is deceiving to me. i am not the most techy person and i thought that you could share full song playlist which to me meant the songs also. that is all, it wasnt anything you had said but i am really thankful you enlightened me because i would still be racking my brain trying to figure out how to do it.
    You can share songs, but if there is DRM protection on the song, it will not play on the other device unless you also transfer the rights to the other device. You are getting into the problem of music piracy.

  • What is the best way to move my itunes from one computer to another and retain all files?

    what is the best way to move my itunes from one comupter to another?

    I assume you mean the media and playlists, not the iTunes application.
    http://support.apple.com/kb/HT4527

  • What is the best way to run AirPort Extreme and Airport Time Capsule together?

    I have cable DSL, and I was running an AirPort Extreme. DH was sold a time capsule, so I just daisy-chained off the airport. We had an issue with limited reach, so I tried to reconfigure. Now I have no wifi at all. Tried everything I can think of. What is the best way to handle these two products, or should one be left out? Any suggestions would be great.

    Decide which one you would like to serve as your router, and configure the other one as a bridge. If they are both the most recent models of each neither one is particularly advantageous over the other.
    Connect them to each other with an Ethernet cable if you want to create a "roaming network", or not, if you want to create a "wirelessly extended" network. A roaming network is the better of those two choices.
    "Hard reset" the one connected to the modem and use AirPort Utility to configure it. Verify everything works to your satisfaction, then "hard reset" the other and configure it.
    To "hard reset" an AirPort Base Station: make sure it's powered up, then press and hold its tiny reset button and keep it depressed for five to ten seconds, long enough for its LED to flash amber rapidly. Release the reset button. Then, the LED will glow amber steadily for about a minute. Then, it will flash amber, slowly, about once every second or two, waiting for you to configure it with AirPort Utility.

  • What is the best way to run Quicken 2007 on Lion?

    I must use Quicken 2007 but have upgraded to Lion. What is the best way to continue using a program that is no longer compatible with 10.7

    Unfortunately, you will need to find a different application; you can't continue to use an app that is not compatible. Or, you can revert back to your Snow Leopard clone (you did back up your SL install before upgrading?) in order to run Quicken. You could have two partitions on your hard drive - one for SL and one for Lion.

  • What is the best way to run internet explorer on Mac and IPad and is it safe to do so??

    I need to run internet explorer to access new billing software,  what is the best way to do so and is it safe to run this on macbook and ipad if possible??

    You can't run IE on an iPad and the only way to use it on a Mac, since it's been discontinued for years for the Mac OS, is to install Windows either via Boot Camp or via running Windows as a virtual machine using something such as Parallels Desktop (my personal preference).
    Clinton

  • What is the best way to run dual monitors with a 2011 MBP?

    I have a 2011 MBP and i want to run dual 1920x1080 monitors. what is the best way to accomplish this? i also have a PC attached to the monitors with the DVI connection (but would be willing to change this to the analog, if necessary). so i have teh analog and HDMI connections available on the backs of the monitors.
    what i would like to do is hook the MBP through the HDMI if possible and then i would just be able to change inputs on the monitors depending in which computer i want to use (PC or MBP).
    any ideas would be greatly appreciated. thanks.

    csb814 wrote:
    I have a MacBookPro 17" 1.5 GHz running OS 10.5.7 with 1.5 GB Ram and would like to load Windows XP SSP2 so I can run several specific windows programs that are not Mac supported without a dualcore system.
    Ok, you either own a MacBook Pro with an Intel Processor, or a PowerBook with a PowerPC Processor.
    If your stated speed is correct, then you own a PowerBook, which will not run Windows natively. development & sales for Virtual PC has ceased. The only emulator still around, I think, is iEmulator & is terribly slow on G4s.
    Boot Camp does not work on PowerPC Macs.
    Please correct your signature & descriptions so we can identify the correct machine. Thanks!

  • What is the best way to sync two computers

    I have my work computer and my home computer and I would like my photos and work I do on one show up on the other and vice versa. What is the best way to accomplish this?
    Thanks
    Mike

    Lightroom wasn't designed to do this.
    The workaround that works the best from Lightroom's point of view is to put your catalog file and all photos on an external HD and move this external HD back and forth. Of course, the drawback is that you have to carry the external HD with you.
    Some people have experimented with putting the catalog file in the cloud, and photos on a shared network drive, so both computers can access everything. This has certain disadvantages, particularly if you use the catalog on one computer before it has synchronized from the other computer; and you can search these forums for details.

Maybe you are looking for

  • Imac g4 flat panel upgrade

    I want to upgrade my iMac G4 15'' flat panel 800mhz operating system from 10.1.5 to 10.4.11 tiger and increase the ram from 256mb to 512mb, can some kind person please talk me through the proceedure, you will be aware be now that I am not great on Ma

  • Session variables in sap personas 2.0

    Hi , Is there any way i can able to store values to a variable as global and use the same variable in different tcodes for sap personas flavors? Regards, Sivaganesh

  • Shiny buttons, UI art in Photoshop techniques

    I have seen a lot of request for how to make custom button art for us no artists.. I have found some resources on the web that may be of interest. I am not a representative of any of these sites, but have found the tutorials useful for UI creation. J

  • HT5437 what if my Fujitsu Plasma 42 doesn't have HDMI ?

    Trying to install Apple TV 2012 to an older model Fujitsu Plasma 42. The flatpanel is wall mounted and I can not locate HDMI input. (do I need to remove it from wall ?) Can it be possible that this Plasma doesn't have HDMI? Thanks for your help !

  • Impact of Query Logging on Performance of Queries in OBIEE

    I see from [An Oracle BI Blog post|http://obieeblog.wordpress.com/2009/01/19/obiee-performance-tuning-tip-%e2%80%93-turn-off-query-logging/] that Query Logging has a performance impact in OBIEE. What is the experience with Query Logging at different