How to stop a "continue if true loop" inside a "stop if true loop"?

Hello guys, I have "continue if true loop" that I want to stop when I press the stop button of the surrounding "stop if true loop".
Notice that I ran through all of this to keep the push button released and keep the LED lit.
However, when I press the stop button nothing happens, so:
1) How can I overcome that?
2) Are the shift registers even necessary?
(Please fix my VI)
T. A.
Attachments:
prob.vi ‏7 KB

Your code makes no sense. Why don't you study it with execution highlighting while operating the controls.
What is the purpose of the shift registers? none! Delete them. Why did you place them?
If you want LabVIEW to react to a button, the control terminal should be in the innermost loop. Currently, the code cannot escape from the innermost loop, because the value of the termination condition cannot change. It will spin millions of times per second doing nothing useful.
There are many ways to keep an LED lit after a latch action switch, e.g. with an event structure. (see attached. Make sure to stop the VI with the stop button, else the LED remains lit.). Of course the code is pretty dumb, because you can never turn the LED off again while the VI is running.
LabVIEW Champion . Do more with less code and in less time .
Attachments:
probMOD.vi ‏8 KB

Similar Messages

  • I have a for loop inside of while loop.when i press stop for while loop, i also would like to stop for loop.how can i solve this problem?thanks

    i have a for loop inside of while loop.when i press stop for while loop, i also would like to stop for loop.how can i solve this problem?thanks

    Hi fais,
    Following through with what JB suggested. The steps involved in replacing the inner for loop with a while loop are outlined below.
    You can replace the inner for loop with a while by doing the following.
    1) Right-click of the for loop and select "Repalce" then navigate to the "while loop".
    2) Make sure the tunnels you where indexing on with the for loop are still indexing.
    3) Drop an "array size" node on your diagram. Wire the array that determines the number of iterations your for loop executes into this "array size".
    4) Wire the output of the array size into the new while loop.
    5) Set the condition terminal to "stop if true".
    6)Drop an "OR" gate inside the while loop and wire its output to the while loops condition terminal.
    7) C
    reate a local of the boolean "stop" button, and wire it into one of the inputs of your OR gate. This will allow you to stop the inner loop.
    8) Drop a "less than" node inside the inner while loop.
    9) Wire your iteration count into the bottom input of the "less than".
    10) Wire the count (see step 4 above) into the top input of the less than. This will stop the inner loop when ever the inner loop has processed the last element of your array.
    Provided I have not mixed up my tops and bottoms this should accomplish the replacement.
    I will let others explain how to takle this task using the "case solution".
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • When playing my i-tunes library through my hi-fi via Airport Express, how can I get i-tunes to play a single album and then stop, without continuing on through my entire library. It's a problem that doesn't occur when I'm listening through my i-pod.

    When playing my i-tunes library through my hi-fi via Airport Express, how can I get i-Tunes to play a single album and then stop, without continuing on through my entire library? It's a problem that doesn't occur when listening on my i-pod.

    Hey everyone in Apple world!
    I figured out how to fix the flashing yellow screen problem that I've been having on my MBP!  Yessssss!!!
    I found this super handy website with the golden answer: http://support.apple.com/kb/HT1379
    I followed the instructions on this page and here's what I did:
    Resetting NVRAM / PRAM
    Shut down your Mac.
    Locate the following keys on the keyboard: Command (⌘), Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    Turn on the computer.
    Press and hold the Command-Option-P-R keys before the gray screen appears.
    Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    Release the keys.
    I went through the 6 steps above twice, just to make sure I got rid of whatever stuff was holding up my bootup process.  Since I did that, my MBP boots up just like normal.  No flashing yellow screen anymore!!   
    (Note that I arrived at this solution when I first saw this page: http://support.apple.com/kb/TS2570?viewlocale=en_US)
    Let me know if this works for you!
    Elaine

  • I continue to get the /.HTML/Rce.Gen3 virus through my mailbox almost daily.  It is picked up by my anti-virus software.  How do I get rid of this permanently so I stop getting it daily?  Is it from a internet cache??

    I continue to get the /.HTML/Rce.Gen3 virus through my mailbox almost daily.  It is picked up by my anti-virus software.  How do I get rid of this permanently so I stop getting it daily?  Is it from a internet cache??

    I use MacKeeper on my MacBook Pro
    Ack! Get rid of that immediately! MacKeeper's bad news. Plus, it does a really awful job of actually detecting malware. See:
    Beware MacKeeper
    Mac anti-virus detection rates
    http://applehelpwriter.com/2011/09/21/how-to-uninstall-mackeeper-malware/
    My active accounts are clean, but the On My Mac gmail keeps and continues to repopulate all email, even after I trash them.
    If you're seeing messages remaining in GMail's All Mail folder after deleting them, that's normal. GMail keeps all messages in there, even after deletion, unless you manually delete stuff using GMail's web interface. See Hiding GMail’s “All Mail” from Apple Mail.
    If you're actually having trouble deleting e-mail from an On My Mac mailbox, there's probably something wrong with your mailboxes.

  • Event controll: How to stop a running while loop inside a event structure

    Hello,
    I have some problems with controlling a while loop inside a event structure (see attached VI).
    I habe 3 buttons ("Start Measurement, Stop Measurement, Quit Program"). When a measurement is running, it should be possible to stop the measurement by clicking on "Stop Measurement", but this does not work.
    Has anyone an idea?
    Thanks a lot and best regards,
    Michael
    Message Edited by MichaGue_01 on 04-23-2010 04:37 AM
    Solved!
    Go to Solution.
    Attachments:
    Event_Controll.vi ‏27 KB

    Hello,
    Try not to use while loops inside a Event structure.
    My approach is using two While loops (one will have only the Event structure).
    I had to use to Flag buttons that make it a bit more complicated but i am sure somebody will come up with a better idea, or you might want to have a think about it yourself.
    Have a look on the modified version on the attachment.
    Once you are happy how it works then you can Hide the 2 flag buttons from the Front Pannel by going to Block diagram right-click the indicators and choose option "Hide Indicators/Controls"
    I did it in LV 8.6 so i hope you can open it on your PC if not i can downgrade it.
    If you have any problem let us know.
    Regards
    Dimitrios
    Test Systems Computing Engineer
    Cummins Turbo-Technologies
    Attachments:
    Event_Controll[1]_modified.vi ‏18 KB

  • At new, EXIT,STOP and CONTINUE, Select-options Initialization

    Hi Experts,
    I am having the following requirements.
    1) I have design the selection screen by using Select-options statement. In that i have to initialize both low and high values. I don't know how to write and where to write the code for the same.
    2) and another requirement as
    field A  contain values ( 0, 1, 1, 0, 1, 1, 1, 0)
    Field B  contain values (1, 0, 1, 1, 1, 1, 1, 1)
    At new b.
    write:/ b.
    endat.
    In the above case how many times At new statement calls.
    3) How is EXIT differ to STOP and CONTINUE. Please give me the brief idea on this.
    I hope i will get the accurate results for the above soon.
    Regards
    Prabhakar

    Hi,
    1.
    Select-options could be initialised with the command INITIALIZATION.
    Ex :
    tables : MARA.
    select-options : s_matnr for mara-matnr.
    Intialization.
      move : '123456789' to s_matnr-low ,
             'I'         to s_matnr-sign ,
             'EQ'        to s_matnr-option.
      append s_matnr.
    I means  Include, the other possible value is E for exclude.
    EQ means EQual, could be BT BeTween ...
    The structure of a select-options is : Sign, Option, Low and High. (Low and High is the two values you see in screen).
    The commande Initialization could be place anywhere outside the start-of-selection ... end-of-selection.
    2.
    3 times ..  but, depends where are the fields ..
    4.
    The command EXIT leave the current command. Command could be a PERFORM, a DO, a LOOP, a SELECT, ...
    The command STOP go to the end-of-selection. If you put some code after the end-of-selection, the code will be processed.
    Rgd
    Frédéric

  • ITunes stops working.  The message says iTunes has stopped working due a problem to the program.  How do I find a solution?

    iTunes stops working.  The message says iTunes has stopped working due a problem to the program.  How do I find a solution?

    Hey there Warrior41,
    it sounds like you are unable to use iTunes because it either will not launch without this error, or you get the error when you are using it. Sorry to hear about that, that can be pretty aggravating. I would use the troubleshooting in the following article to help resolve the issue, named:
    iTunes for Windows Vista, Windows 7, or Windows 8: Fix unexpected quits or launch issues
    http://support.apple.com/kb/ts1717
    Start with opening iTunes in Safe Mode and see if the issue persists. If not, the article will help you troubleshoot for 3rd party plugins that may be causing it:
    Start iTunes in Safe Mode
    Open iTunes in Safe Mode to isolate any interference from plug-ins or scripts not manufactured by Apple.
    Hold down Shift–Control while opening iTunes. You should see a dialog that says "iTunes is running in safe mode" before iTunes finishes starting up.
    Click Continue.
    See if the issue you're experiencing persists in Safe Mode.
    If you have the same issue while iTunes is in Safe Mode, proceed to the "Create a new user account" section. If you don't experience the same issue, follow these steps to remove third-party plug-ins.
    If that doesn't resolve the issue there are additional steps in the article if needed.
    Thank you for using Apple Support Communities.
    Regards,
    Sterling

  • 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

  • How do I increment a variable at the end of a loop to run it through the loop again?

    I'm new to LabVIEW programming and I'm trying to write a small program that just receives a lower and upper limit, and whether the user wants to increment or decrement the number. I can't figure out how to increment the number after the simple calculations have been done and to run through the loop again with the incremented number. Right now I'm using a while loop inside of a case structure where true decrements and false increments.

    Here are a few possibilities.
    Message Edited by altenbach on 12-05-2008 03:25 PM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    fractionaIncrement.png ‏8 KB

  • AE CS5 (10.0.1.19) Ram Preview - Audio stops and continue playing randomly

    I already reported this issue to Adobe as a BUG but I want to ask here if somebody else have this problem or can confirm it.
    Audio breaks/stops and continue playing randomly when 'Ram Previewing'
    It happens mostly when the RAM is fully filled up with image cache files! When the Ram is not filled up totally with image cache files it happens rarely!
    Steps to reproduce BUG / issue:
    1. create a new composition with a length of for example 5 minutes.
    2. create a new solid with size of 50x50 pixel and animate the position of the solid for a very long time so when ram previewing the whole ram/memory gets filled up with different image cache data (this is very important!). Alternatively you could use a long video file to fill up the RAM completely.
    3. import a wave file .wav 16bit 48khz uncompressed which is very long for example 5 minutes.
    4. insert the wave file in the earlier created composition which contain the animated solid or video file.
    5. Set the work area bar (preview range) for the whole composition.
    'Ram Preview' the composition until the whole RAM/memory is filled up with image data.
    AE has to stop rendering because there is no more space available in RAM.
    make sure 'from current time' checkbox is off.
    6. listen to the audio which stops playing randomly for about 1-2 seconds and comes back and continues playing (***BUG***)
    7. Now set the right handle of the composition work area bar (preview range) to less then the maximum RAM size
    (less then the green cache indicator on the right side)
    8. "Purge image caches" or "Purge All"
    9. Ram preview the now smaller work area
    10. listen to the audio. The audio breaks are gone! (***Workaround***)
    Additional information:
    I have the latest After Effects CS5 update installed (10.0.1.19)
    This behavior is tested with different audio drivers inside After Effects CS5 (After Effects WDM Sound, Generic Low Latency ASIO Driver,  ASIO DirectX Full Duplex Driver)
    I also tried different Sample Sizes Buffers (alternatively to the default 2048 samples) but without success.
    Reducing the amount of RAM which After Effects can access didn't solve the problem!
    System:
    Win7 64bit all latest Updates, 8GB RAM, CPU: intel Core 2 Extreme QX9300, nVidia Quadro FX 2700M, IDT High Definition Audio Driver v6.10.0.6227
    There is no driver problem on my system because After Effects CS3 & CS4, Premiere & Soundbooth CS3 CS4 CS5 have no audio problems!
    I have lots of other professional audio software like Steinberg Cubase 5.... on the same system and they all work fine.
    I also turned off AVG Anitivirus and Windows firewall for testing without success.
    AdobeQT32Server.exe, dynamiclinkmanager.exe, PProHeadless.exe, afterfx.exe do not get blocked by firewall they have full permission.
    The CS5 Production Premium installation went fine and without errors and antivirus protection was turned off for the installation.
    Any help would be nice!
    Felix

    Yep, I agree with craulmedia....
    It's 1 month ago after my initial post and no valuable feedback from Adobe although I filled out the bug report in addition to this post and provide my email for further information.
    The only reason for upgrading from CS4 -> CS5 production suite was the use of all my 8GB RAM in AE and now AE can use it but when it's using it the audio have issues.
    CS5 is on the market for nearly a year and still have such essential issues... And my fear rises there will be no valuable update fixing these issues but instead Adobe forces me to upgrade later this year to CS6 in hope something change...
    I have had support request for different Adobe products in the past including telephone support, web support via Adobe ID... none with success the web support answered my request 3 weeks later with the message they will look into it... time went by and in the end the result was "Yes we know it's a known bug" the bug did not get fixed for that CS version. it even exists in the next major CS release! (talking about EncoreDVD here). Once the web support answered weeks later when I was in holidays and after some days I was not able to respond they closed my case. I reopened the case but never got an answer! Telephone support is nearly waste of time because in 95% of all cases it does not help to reinstall the whole operating system and talking to people who know less about computers in general or Adobe products then my mom - it's a waste of time.
    I don't want to blame here anybody for things happend in the past I just want to point out that this time I choose an other support channel (bug report and forum post) but it seems that this support channel is also a waste of time after 1 month with no valueable feedback!
    I bumped up this post 2 times and thanks to craulmedia for the third time.
    And now here is my fourth time *BUMP*
    All I got so far is: "I saw your bug report it's in the queue"
    Is it still in the queue? which queue nr. does it have? how long will it take to get any answer? is it reproducible? Is it confirmed as a known bug by Adobe? Is Adobe working on a fix? When will this fix be available? Is the fix provided in form of an update or in the next major release?
    OK, I know this is a user to user forum and Adobe people only stop by in their free time and there is no guarantee for any real support.
    But it started out so good in the first time...
    Last 2 things I want to add here:
    1. Why should I provide my email in the bug report? Sure so Adobe can get back to me for further information... but wouldn't it be nice if Adobe would be so kind to give some status report to that given email as a small present for the enthusiastic beta testers ?
    2. please Adobe take a look at www.uservoice.com already Autodesk started to move there with 3ds Max.

  • How can i say yes to automatic updates when they stop my wireless dlink to Virgin home broadband from getting on the internet and then i have to do a system restore to the day before the update to get it back to normal?!? Frustrated

    how can i say yes to automatic updates when they stop my wireless dlink to Virgin home broadband from getting on the internet and then i have to do a system restore to the day before the update to get it back to normal?!? Frustrated
    == This happened ==
    Not sure how often
    == automatic updates go on my computer, say if i click yes to update when shutting down

    You have 10.6 on that machine, I suggest you stick with it for performance, third party hardware and software reasons as long as possible.
    Consider 10.8 (not 10.7) when it's released, because 10.7 and 10.8 will require a new investment in software and newer third party hardware as it requires newer drivers the old machines won't have. (forced upgrade because of software, really nice of them)
    http://roaringapps.com/apps:table
    Far as your Safari problem do these things until it's resolved:
    1: Software Update fully under the Apple menu.
    2: Check the status of your plug-ins and update (works for all browsers) also install Firefox and see if your problems continue. You should always have at least two browsers on the machine just in case one fails.
    https://www.mozilla.org/en-US/plugincheck/
    Flash install instructions/problem resolution here if you need it.
    How to install Flash, fix problems
    3: Install Safari again from Apple's web site
    https://www.apple.com/safari/
    4: Run through this list of fixes, stopping with #16 and report back before doing #17
    Step by Step to fix your Mac

  • How does the client edit their site after the freelancer stops hosting the site on their CC account?

    Once a freelancer stops hosting a client's site through their Creative Cloud Account, how does the client continue to edit their site? Do they need their own CC account or does the site have to be hosted on a BC plan?

    This forum is only to discuss how the forums operate, not products
    If you go to the Forums Index http://forums.adobe.com/index.jspa
    You will be able to select a forum for the Adobe product(s) that are
    use to edit/maintain the site

  • How long will Apple continue to release patches for Snow Leopard?

    Now that Mountain Lion has been released, how long will Apple continue to support Snow Leopard with patches?

    I think the support has already stopped for 10.6.8 if past practice is anything to go on.*
    Past observation suggests Apple supports the current and the preceding OS.
    On the  25th of July, 2012** it became no longer the preceding but relegated to 'bronze'.
    * exceptions have been known but are rare.
    ** when 10.8 came out.

  • Can I stop the continuous saving of Pages document?

    Can I stop the continuous saving of Pages (iwork) document? I am currently working on a large Pages document - a school handbook that is topping 500mb due to the photographs. On a Macbook Pro I7 with SSD drive the continuous saving of the document when I do the slightest change is driving me to distraction - I have no idea what it would be like with non-SSD! It takes around 30 seconds each time I move a single photograph. Can I stop this versioning that Pages does?
    Thanks

    Your problem is not linked to versioning but to AutoSave.
    Autosave try to save every change when we leave the app "unoccupied" for a short time and, if we don't, it force save on a regular basis. It's this feature which is at work in what you describe.
    By default, Versions apply once an hour or when you force it pressing cmd + s so it's not it which is at work.
    My own tip when I want to edit a large file is to rename it from azerty.pages into azerty.template.
    This way, when I start a session upon this doc, I don't work on a document which was already saved once, I work on one which was never saved so, Autosave doesn't apply.
    CAUTION: this feature is killed after the first save process.
    Happily, there is an answer :
    Use my script Save_As (thanks to FastScripts I gave it the shortcut cmd+shift+s) or use it encapsulated in a Service by Peggy.
    This script trigger File > Duplicate
    then File > Save…
    This way it allow us to keep consecutive files storing the contents of our work in progress but the document upon which we work remains unsaved so free of AutoSave feature.
    We retrieve what we were doing under 10.6.8.
    To be able to work a more comfortable way, we will have to wait the delivery of the next upgrade which, I guess, will be iCloud aware which require deep changes in the app design so that it will be able to save the documents by small blocks as was explained during the late WWDC seminars.
    Now, I will give a less technical advice :
    I'm quite sure that on the long run, it would be better to replace your larges picture files by smaller ones fitting the true requirements. Inserting files with a rez greater than 300 dpis in the printed size is counterproductive. As you see, I add my vote to fruhulda's one. She was also perfectly right when she urged you to crop your pictures out of Pages. This one doesn't crop the pictures, it put a mask hiding what you wan't to drop.
    It's fine to build quickly a draft of a document but for the final work, it's better to prepare the pictures with a dedicated application.
    Yvan KOENIG (VALLAURIS, France) jeudi 17 novembre 2011 21:03:46
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • How to AO signal continuously

    Now I can use 4461 to AO signal continuously, but the structure of the program is based on the while loop.So if I want to stop the generation,I must click the "stop" control on the front pannel.What I really want to know is if there is a method which isn't based on the while loop,thus when I run this vi, it can generate signal continuously.Because this vi isn't based on the loop, 4461 can still generate signals even though I closed this vi.And if I want to stop generation, I can run another vi to stop the generation. It will be better if there exists such a method. So I can program using TestStand. One step is signal generation, and next several steps will stop the generation.
    Thanks a lot!

    I haven't found a way to do it yet. To get the hardware to run, you have to create and run a task. Unfortunately, the tasks are only 'alive' as long as the VI that ran them is running. If you took advantage of the card's memory and used regeneration, I couldn't see a reason why you needed to have a VI running to keep the output going. I ended up using a producer-consumer program structure with the AO stuff as the producer loop and the acquisition contained in a state machine consumer loop using queues to pass commands and data back and forth. It works quite well.

Maybe you are looking for

  • How do I restore the address bar at the top of my window in firefox on a mac?

    My kids were messing with my computer and must have pushed something and everything disappeared. I need to know how to put an address bar (back button, refresh, ect) back up into the top of my window. Part of the problem is that my computer screen is

  • Open database in different location

    Good morning. I try to open existing Berkeley DB JE (using DPL), than previously i copy in othrer folder, but it not work. I open the jdb files and I found that the absolute path where the DB was created. Any ideas? Thank you

  • PDF link to reveal file, not open file?

    Does anyone know if it's possible to create an interactive pdf in indesign that has a button reveal a file in the finder? instead of opening the file? thanks dave

  • How to get the x1,y1 and z1 coordinates out of an sdo_geometry object?

    Hello, i have stored several boxes into an sdo_geometry object like the following: mdsys.sdo_geometry(3003,null,null, mdsys.sdo_elem_info_array(1,1003,3), mdsys.sdo_ordinate_array(x1,y1,z1,x2,y2,z2) now i would like to get the x1,y1,z1 coordinates fr

  • Converting I-tunes 6.0 M4p files to mp3

    I have a number of files that have been downloaded from I-tunes 6 that will not play in my Dj CD players. My CD players play Mp3 files but not the newer AAC files from I-tunes 6. Is there a program or a way to convert the file, by keeping the file on