Can 2 while loops work at the same time?

I have two while loops in my program; one reads data and the other does nothing until I hit stop on the first one. I want the first one to always run and the second to run off of the time constraint I have for it when I hit the start button. I am using a DAQ and transfering data from one while loop to the other. See attached file.
Main questions:
How to attach the start button?
How to get the second loop to work with the first?
Thank you
Solved!
Go to Solution.
Attachments:
2whlloopprgrm.vi ‏299 KB

Your problem is that the loops have a data dependency.  If you want to run both loops at the same time, they can't have any wires running from one to the other.  Look into the Producer/Consumer architecture.  It uses queues to send data from one loop to the other.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines

Similar Messages

  • How do I break a for loop (inside) and a while loop (outside) at the same time by a control button

    I have a while loop (outside) and a for loop (inside) and a control button within the for loop.  I want to stop the program by click the botton without finishing the for loop.  How can I do that?
    Thank you in advance.

    HI Please find attached snapshot Regards, Santosh
    Message Edited by SanRac on 12-17-2009 05:12 AM
    Message Edited by SanRac on 12-17-2009 05:13 AM
    Attachments:
    Snap1.png ‏4 KB

  • HT4111 can headset and bluetooth speaker work at the same time?

    On my iPad, can the headset option and a bluetooth speaker work at the same time? I am using the headset to listen to music, but I want my spouse to be able to hear the same music using a wireless bluetooth speaker in the other room.

    Sorry, of course I tried it and it did not work!
    To clarify, can it be MADE to work? The basic hook up does not seem to allow for both. I was hoping an intellengent, helpful person might be able to assist a novice.

  • When our iPad is in use on the internet, my iMac internet connection goes off. I can't get the two devices to work at the same time with the AirPort Express. Is there a setting somewhere I may have missed?

    When our iPad is in use on the internet, my iMac internet connection goes off. I can't get the two devices to work at the same time with the AirPort Express. Is there a setting somewhere I may have missed?

    When two or more devices conflict it typically means that the DHCP service is either misconfigured or is not running at all. DHCP provides IP addresses to local network clients.
    Is your AirPort Express base station the only router in your current network configuration? That is, is it connected directly to an Internet modem and not to another router upstream of it?

  • I want to teach adobe illustrator to my students. If I buy CC-illustrator, Can we work  in the same time with each devices with my ID ?

    I want to teach adobe illustrator to my students. If I buy CC-illustrator, Can we work  in the same time with each devices with my ID ?

    No you have your own ID number

  • Help!!! 8i&9i can not work at the same time

    I have installed 8i&9i in one Solaris8, and the port and listener name is diffendent, but now 8i&9i can not work at the same time.
    pls help me
    thanks anyway.
    John

    I have hard time digesting your concern.. I have 4 Different instance of oracle running on sun 2.8.
    8.0.5, 8.1.7, 9.i rel 1, 9i rel 2. No issues there...
    The simple things is to check is you .profile ( env variables)
    Example ...
    Check you .profile or .cshrc ( Depends on the SHELL You are using )
    Let say you have .profile
    THERE IS SETTING SUCH AS...
    ORACLE_SID
    ORACLE_HOME
    LD_LIBRARY_PATH
    PATH
    etc..
    You could try the following..
    log into to you sun box..
    do echo $ORACLE_SID this will give you current SID YOU have available to work with..
    so lets say if you have a 8i SID CALLED orcl8i
    example assume you have .cshrc
    setenv ORACLE_SID oracl8i
    setenv ORACLE_HOME /oracle8i_HOME_PATH...
    setenv LD_LIBRARY_PATH /oracle8i_HOME_PATH//lib: etc..
    etc...
    then
    you could validate by doing echo..
    echo $ORACLE_HOME
    echo $ORACLE_SID
    now try svrmgrl
    this should work..
    as far as 9i you no longer have svrmgrl..
    you have to apply the above method and log into the sqlplus.
    hope this help...
    If there is a specific question email me [email protected]
    good luck.

  • HT1752 Hi, I want to play my music through my Comp as well as my wireless speaker.. i can only seem to get one working at a time, is it possible to get both working at the same time??  Thanks Kylie

    Hi, I want to play my music through my Comp as well as my wireless speaker.. i can only seem to get one working at a time, is it possible to get both working at the same time??  Thanks Kylie

    Hi Kylie,
    Open Audio Midi Setup in Applications>Utilities, see the input & output options & KHz setting there.

  • How far will the extreme reach and how many users can be on there at the same time?

    How far will the airport extreme reach and how many users can be on there at the same time?

    Last question first, since that is the easy one......approximately 50 (fifty) users for wireless depending on how active each user might be.
    The first question is much more difficult, as distance is not really the issue with wireless.....obstructions are the issue.
    A wireless signal can easily travel 300 feet or more with no obstructions in the signal path.
    But, a typical wall of sheetrock or wallboard in a home will absorb....on average....15-20% of the wireless signal. Brick or adobe will obviously absorb much more. A ceiling....because it is thicker....will absorb about 25-35% of the signal.
    So, if the wireless signal must pass through several walls and a ceiling, there won't be much, if any, of the signal left....even though the distance that the signal travels is not great...for example, 20-25 feet.
    Other wireless networks around you at the neighbors can also affect the relative strength of the wireless signal.
    The bottom line....locate the AirPort Extreme where wireless devices will receive a signal with the least amount of obstructions in the signal path. Your actual performance cannot be predicted in advance. You will not know how well the AirPort Extreme works for you until you try it out in your home.
    If you find that the signal does not reach as far as needed,  you will need to add additional "extenders", like an AirPort Express to provide more signal coverage.

  • Re: if weblogic can serve two ports at the same time?

    That's not true. WebLogic supports a non-secure and secure listener port at the
    same time. That was one of the selling points for my organization.
    Michael Girdley wrote:
    If, you mean the same port on two different IP addresses, then the answer is
    yes.
    If, you mean two different ports on the same IP address, then the answer is
    no.
    Thanks,
    Michael
    Michael Girdley
    Product Manager, WebLogic Server & Express
    BEA Systems Inc
    fxy <[email protected]> wrote in message
    news:8fdk99$t9$[email protected]..
    <URGENT QUESTION>
    I'd like to know if weblogic can support two ports at the same time.
    thank you in advance.
    <URGENT QUESTION>

    Well, the question was really meant to see if any change was made to WL to support
    this, not because I didn't believe Michael Girdley.
    P.S., this is something Websphere 4.0 let's you do...In case this encourages someone
    to add this support.
    "Mike Reiche" <[email protected]> wrote:
    >
    If you don't believe Michael Girdley, then I don't know why you would
    believe anyone
    else. I believe the answer is still 'no'.
    Why do they 'have to be on different ports'? We block requests by URI
    - so just
    block all requests to /youradminapp/* at the firewall. Or you can block
    them at
    your Web Server. Or restrict them by user in WL.
    Mike
    you"Anil Arora" <[email protected]> wrote:
    Is it still true that WL 6.0 cannot host multiple (non-secure) HTTPports
    on one
    server? We need this capability within one JVM to allow one web application
    to
    be accessed from one port while another through a second port. Forexample,
    we
    have a application to be exposed through the firewall at port 7001.
    Then we have
    another admin application to only be accessed within the firewall. But
    they need
    to be deployed within the same JVM since they may have shared statebetween
    them.
    Thanks,
    Anil
    "Michael Girdley" <[email protected]> wrote:
    I'm sorry, to clarify my statement: I was speaking about nonsecure
    communications. Weblogic can only support one listener port at a time.
    Thanks,
    Michael
    Michael Girdley
    Product Manager, WebLogic Server & Express
    BEA Systems Inc
    Allen Akers <[email protected]> wrote in message
    news:[email protected]...
    That's not true. WebLogic supports a non-secure and secure listenerport
    at the
    same time. That was one of the selling points for my organization.
    Michael Girdley wrote:
    If, you mean the same port on two different IP addresses, then
    the
    answer is
    yes.
    If, you mean two different ports on the same IP address, then theanswer
    is
    no.
    Thanks,
    Michael
    Michael Girdley
    Product Manager, WebLogic Server & Express
    BEA Systems Inc
    fxy <[email protected]> wrote in message
    news:[email protected]...
    <URGENT QUESTION>
    I'd like to know if weblogic can support two ports at the same
    time.
    thank you in advance.
    <URGENT QUESTION>

  • How does one use Sound sticks while using HDMI at the same time ??

    How does one use Soundsticks while using HDMI at the same time ??

    Hi Caleb,
    This isn't a precise answer but a possible workable solution. SoundSource puts a menu extra which allows you to switch input/output and has an option for Auto-Switch to Headphones. The auto-switch feature doesn't work with USB headphones but I believe it will with 'regular' headphone plugs such as you use.
    http://www.rogueamoeba.com/freebies/
    (Oh, did I mention it's free Universal and works with Leopard?)

  • I can't shift + scroll at the same time! HELP!

    I have a windows 8 , dell laptop. I have a Microsoft wireless 3500 mouse. I can't Shift+scroll at the same time and it's annoying when I play games that I have to shift+scroll which is basically the game I play all the time. Please help!

    It's not, it's a downloadable game. Also it doesn't work with pages that you scroll down on like youtube, etc when I hold shift.

  • Microphone and what U hear can not be use at the same time at the same time

    I am using Creative SB X-fi Xtreme Gamer (Creative Model Number: SB073A), sound card and have down loaded the latest drivers (version 2.18.15). What U hear is enabled, which in turned makes the microphone unavailable. If you reverse the settings, then what U hear is unavailable.
    It appears that; microphone and "What U Hear" can't be enabled at the same time. If someone has an answer on how to correct the following settings to achieve; using the microphone and what U hear at the same time would be appreciated.
    My OS is WIN 7x32

    It was possible in Windows XP but due to windows 7 own audio mixer this does not work anymore.

  • Hi,  If I have 1 license for creative cloud, will it possible to install in 2 computers (1 laptop and 1 desktop)?  When I am in the office I can use desktop and at home I can use laptop? At the same time I will be using only one devise. Will that be possi

    Hi,  If I have 1 license for creative cloud, will it possible to install in 2 computers (1 laptop and 1 desktop)?  When I am in the office I can use desktop and at home I can use laptop? At the same time I will be using only one devise. Will that be possible?  Thanks

    Yes. Yes. Yes.
    Mylenium

  • Will Verizon Stop encrypting sim cards for iPhones so users can talk and surf at the same time?

    Will Verizon stop encrypting iPhone sim cards so users can surf and talk simultaneously?

    I can prove that this is not the case. I travel abroad monthly and have sim cards for these 2 countries i frequent and i can surf and talk at the same time. The claim that it needs another antenna does not support my findings. Can we be more transparent please. As a costumer i find it highly inconvenient to have to hang up a call with someone just to access an email.
    >> Personal information removed to comply with the Verizon Wireless Terms of Service <<
    Edited by:  Verizon Moderator

  • All apps stop working at the same time?

    AOL Radio
    Banner Free
    Bubble Wrap
    Clock Art
    iChoose
    Kaleidoscope Lite
    Know on wood
    Magic 8 Ball
    Speed Box
    After getting those 'free apps' from the app-store (directly with my iPhone3G)... they all worked fine for 1-2 days. I ran them many times without problems.
    Now they all stopped working at the same time. (They attempt to load... their main screens appear... then they just exit back to HOME instead.) Web-apps and built-in Apple software, all works fine.
    I've tried powering the iphone up/down several times.
    I've also tried deleting 1-2 of the apps from the phone... and the re-syncing.
    Same problem.
    Are there 'fixes' better than:
    Drive 1,000 miles back home and re-sync all your apps.
    Restore the phone and lose all my settings.
    Search, find, download, and re-install all the apps over again. (What if I had >100????)
    I need a 100% reliable phone... all the time.
    At any time... all my apps might instantly stop working for unknown reasons???
    (Itunes=v7.7.1.11 iPhone3G=2.0-3A347 PC=Windows Xp Pro)

    same thing happened to me, I think it has something to do with itunes 7.7.1
    I'm beginning to think you are right... but is there another way to copy things
    from PC to iPhone... without ever using iTunes?
    or... maybe it's not iTunes:
    ... since I downloaded all my apps direct from iStore->iPhone... wouldn't
    sync'ing them only copy them from iPhone->PC? (So how could iTunes be the
    problem... since it shouldn't really be 'writing' any apps TO the iPhone.)
    Or would copying songs (I only did 1) and MP4 video (I only did 1)... from
    PC->iPhone... somehow affect all my apps?
    With all the powerful things iTune does... I would think a simple "copy command" from PC to iPhone... wouldn't run the risk of damaging all my apps on the iPhone. Or could it?

Maybe you are looking for