How to stop the While loop in the Structure of the event with the same button?

Hello

I have a problem. I want to use a single control to activate an event in a structure of the event and the same control to end a while loop in this case.

It is possible to use 2 controls to do this, but I need to be alone.

Thank you

You should NEVER place while loops inside the case of the event, and it is never necessary to do. Think about it: all you have to do is spin the code. You can easily use the outside while loop for everything. Simply place the code of the loop internal (without the inner loop) inside the case of delay and manipulate the time-out period between a pending finished and the infinite (-1), depending on the State of the Boolean value.

A very simple example (LV 8.0)

Tags: NI Software

Similar Questions

  • How to have a while loop inside a structure of matter?

    Hi all

    I would like to know how to control a while loop by using the structure of the case? I would like the person to check if the object has is in its original position or not.

    If this is the case, go...

    The object must then do its job, as mentioned in the while loop... as up and down 10blocks...

    Later, when she returns to its original position, the entire process must stop...

    I checked the forums on this http://forums.ni.com/t5/LabVIEW/How-to-stop-while-loops-inside-a-case-structure/m-p/591259

    It is the closest, I can have... but can someone tell me how to program for this? How logic should be?


  • How to reset a while loop based on a value change event?

    Hi all

    I work in a labview program that sends voltage to a laptop via USB 6008, tension is amplified by an op-amp, and then he comes back in the laptop. I created a program and a working circuit, but my current challenge is how to reset the average of the values of voltage coming into the laptop, after that the user changes the digital control (which controls the output voltage). In other words, I need to be able to reset the number of iteration and the sum to 0 each time this happens.

    I looked upward to reset the counters of iteration through shift registers, but I'm not sure it will work in this case, but I'm also not sure how to reset the sum of an array (if possible). I have spent a lot of time to read these forums and tutorials from various sites, so I think it can be done with the correct nesting of the case structures, structures of the event and while loops, but I don't know how. I am new to LV, just started to learn in mid-January, so any help is appreciated.

    Thanks in advance,

    Graeme

    You just need the structure of single event with the bargains.  Use the case of timeout to get your new values and find the average (100ms timeout value and get rid of the wait function (ms)).  Keep the amount and the number of items in the shift registers.  Wire these values through each case of the event.  In the event of changing the value: control, just set the values to 0.  Then add a Stop button value change event to stop your program.

  • How to stop a while loop structure in the event of a main vi

    Hello;

    Sorry for my English

    I have to stop to a Subvi my main VI, the Subvi contains a while loop and an event structure, so I need to stop this loop while I tried directly from my main vi, global variable, but it did not work

    any help please or example!

    How about something like this (solution see attachment) using a user event.

    Explore the User Interface--> range of events and dialogue. To display the dynamic event of the terminals in the structure of the event just right click and select 'display the dynamic event posts '.

  • How to stop the page button to open the console?

    When I press the next page button it opens the debugger console, as well as the home keys and end do not work.
    I am running windows 10 on a new Surface of MS pro 3

    I disabled all add ons, but the problem persists.

    You may have switched to the keyboard navigation.

    You can enable or disable navigation to keyboard/disable by pressing F7 (Mac: fn + F7).

    • Tools > Options > advanced > general > accessibility: [] "always use the cursor keys to navigate through the pages."

    Note that this is a function of Firefox Accessibility.

    Start Firefox in Safe Mode to check if one of the extensions (Firefox, Tools/menu key > Modules > Extensions) or if hardware acceleration is the cause of the problem.

    • Put yourself in the DEFAULT theme: Firefox, Tools/menu key > Modules > appearance
    • Do NOT click on the reset button on the startup window Mode safe
  • How to stop the same song playing over and over again

    as long as he's 58, I tend to want to listen to entire albums of songs not only. recently my ipod plays the same song over and over again... I must have reset something... Please help

    You can find the manual here:

    http://help.Apple.com/iPod-touch/9/

    You must turn off the repeat function

  • How to stop the highlight buttons in Adobe Encore?

    I am doing a DVD menu for a college project in Adobe Encore.

    When my mouse over a button in the preview of the menu, it becomes highlighted with an orange color disgusting.

    I would just be empty when the mouse is over the button.

    To put things in clarity, the DVD menu is designed as an elevator panel, and you are able to press the buttons as you would in a regular elevator.

    Here is a screenshot of my problem:

    http://imgbucket.info/photo/0oqk0ztiu/Elevator_Panel_Help_Me.PNG

    TLDR: I want to get rid of the thing around the button highlighted in orange. How can I do? (see photo)

    I can't take your image to download.

    I suppose that you have two moments, one that is orange and the other a. Otherwise, you will see nothing?

    If two, one is probably = 1 and the other = 2. Simply remove the layers with the one you don't want.

    http://help.Adobe.com/en_US/Encore/CS/using/WS2CF5669B-310A-4FA7-A52F-7D01AB25A846.html

    Use the "photo camera" icon on the Panel to answer forum to insert a picture into the message.

  • Control of the event: how to stop the race while loop within a structure of the event

    Hello

    I have some problems with control of a while loop inside a structure of the event (see annex VI).

    I have 3 buttons (the "Start measurement, stop, exit the program"). When a measure is running, it should be possible to stop the measure by clicking on "Stop the measure", but it does not work.

    Someone at - it an idea?

    Thank you very much and best regards,

    Michael

    Hi Michael,

    create a process parallel to your measurement. You can use the design model "producer/consumer with vents. You'll find it with «File-> new...» ».

    Another possibility would be to remove the "lock frontpanel" sign, in the case of event start measurement.

    Mike

  • How to stop the timeline loop (where the loop is not activated)

    Hello

    How to stop the chronology of looping/jump at the beginning of the timeline automatically when the playhead reaches the end of the edition / the end of the timeline please? The loopback feature is disabled. Its really frustrating when you look at the video game back, and when it reaches the end, he always goes early in the Cup again. Any help would be greatly appreciated. Thanks Tatjana

    Thank you! I fixed it. Its automatic scrolling of the playback head.

  • How to stop the VI and a Sub VI together

    Hi, in my application, I have a vi with a state machine with a loop of event handler. One of the events in my loop of event handler is out who runs the State of the output of my state machine. I also have an under vi outside my statemachine.

    The problem:

    1. at the exit of pressing my Vi does not stop.

    Reason: my sub vi is still running.

    Need solution : How tp stop the two loops together using the exit button.

    StateMachine P.S:1.My is inside a while loop and while loop runs inside my sub vi also.

    2. both the loops are parallel, since I'm on queues in it.

    2. both the loops are parallel, since I'm on queues in it.

    There are many ways, depending on your architecture.

    Can pass you a message from out of your event loop to your another loop on the queue?

    Another way is to use a global Boolean variable 'Stop' and use it in your second loop exit condition. Set it in the event loop when you want to stop the program.

    The producer consumer example stops the second loop by closing the queue during the first loop stops and then to capture the error when the second loop trying to read the queue.

  • How to stop the music in the iOS download

    How to stop the music in the iOS download songs? I accidentally clicked (stupidly) songs to download all the purchased. It will take some time and fill out my iPhone with music. I tried restarting and that did not help. It is also a priority on updating apps from the App store. I use the latest version 9.3.2 iOS iPhone 6.

    Thank you

    I will try to put the device in Airplane Mode, then signature of the iTunes and the App Store. Then try to disable airplane Mode. While you are not connected to the iTunes Store, you should not try to download on the phone once you turn it off airplane mode.

  • How to stop the open a popup when I click on an icon. I want the icon to do its job.

    How to stop the open a popup when I click on an icon. I want just the icon to do its job and open the file. However, I get the crazy popup indicating to choose the program you want to open the file.
    When we first got it it has always opened when a user has clicked on an icon. Then he started doing this several months ago, and I don't know why.
    Please help if you know how to beat this computer.
    Windows Vista Home Edition
    CEH

    Hello

    There are MANY varieties of the latter with a lot of names, but all can be removed with the
    same methods:

    Vista Antispyware 2010, XP Internet Security 2010, Antivirus 2010 Vista and Win 7 Antispyware 2010
    are rogue antivirus, scams to get you to pay for them while they have no advantage at all.

    How to remove all THE varieties of this malware - please read carefully the removal Instructions.
    http://www.bleepingcomputer.com/virus-removal/remove-antivirus-Vista-2010

    RENAME this as necessary to allow them to perform: (use a different name with the extension .COM instead of .exe)

    It can be made repeatedly in Mode safe - F8 tap that you start, however, you must also run the
    in the regular when windows you can.

    Download malwarebytes and scan with it, run MRT and add Prevx to be sure that he is gone. (If Rootkits
    UnHackMe execution)

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN

    Malwarebytes - free
    http://www.Malwarebytes.org/products/malwarebytes_free

    Run the malware removal tool from Microsoft

    Start - type in the search box-> find MRT top - right on - click RUN AS ADMIN.

    You should get this tool and its updates via Windows updates - if necessary, you can download
    here.

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN
    (Then run MRT as shown above.)

    Microsoft Malicious - 32-bit removal tool
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=AD724AE0-E72D-4F54-9AB3-75B8EB148356&displaylang=en

    Microsoft Malicious removal tool - 64 bit
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=585D2BDE-367F-495e-94E7-6349F4EFFC74&displaylang=en

    also install Prevx to be sure that it is all gone.

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN

    Prevx - Home - free - small, fast, exceptional CLOUD protection, working with other security programs.
    It is a single scanner, VERY EFFICIENT, if it finds something to come back here or use Google to see
    How to remove.
    http://www.prevx.com/   <-->
    http://info.prevx.com/downloadcsi.asp  <-->

    Choice of PCmag editor - Prevx-
    http://www.PCMag.com/Article2/0, 2817,2346862,00.asp

    Try the demo version of Hitman Pro:

    Hitman Pro is a second scanner reviews, designed to save your computer from malicious software (viruses,
    Trojan horses, rootkits, etc.). that has infected your computer despite all security measures that you have
    taken (such as the anti-virus software, firewall, etc.).
    http://www.SurfRight.nl/en/hitmanpro

    --------------------------------------------------------

    If necessary here are some free online scanners to help the

    http://www.eset.com/onlinescan/

    http://OneCare.live.com/site/en-us/default.htm

    http://www.Kaspersky.com/virusscanner

    Other tests free online
    http://www.Google.com/search?hl=en&source=HP&q=antivirus+free+online+scan&AQ=f&OQ=&AQI=G1

    --------------------------------------------------------

    Also do to the General corruption of cleaning and repair/replace damaged/missing system files.

    Run DiskCleanup - start - all programs - Accessories - System Tools - Disk Cleanup

    Start - type this in the search box-> find COMMAND at the top and RIGHT CLICK – RUN AS ADMIN

    Enter this at the command prompt - sfc/scannow

    How to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe) program
    generates in Windows Vista cbs.log
    http://support.Microsoft.com/kb/928228

    Run checkdisk - schedule it to run at the next startup, then apply OK then restart your way.

    How to run the check disk at startup in Vista
    http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html

    -----------------------------------------------------------------------

    If we find Rootkits use this thread and other suggestions. (Run UnHackMe)

    http://social.answers.Microsoft.com/forums/en-us/InternetExplorer/thread/a8f665f0-C793-441A-a5b9-54b7e1e7a5a4/

    I hope this helps.

  • How to stop the remote control to the setting

    How to stop the remote control to the setting

    Disable the settings > general > accessibility > voiceover.

  • HOW TO STOP THE NEW ADS ON FACEBOOK... THEY ARE FRIGGIN BORING AND REEK HAVOC WHEN YOU PLAY... PLEASE ME TELL HOW TO BLOCK THEM!

    How to stop the new ads on Facebook

    I get very annoyed by ads to where they are on the web so I use an add-on called 'Adblock Plus' which uses its database to block known ads and you can even block yourself!

    With 'Adblock Plus Adblock Plus ' installed, you can block all advertising photo:

    1. right click on the announcement of photo that you want to get rid

    2. in the menu, click the option that says: ' Adblock Plus: block image... "(it is usually at the bottom of the menu)

    3. when the pop up box appears, simply click 'Add filter' and advertising will disappear before your eyes!

    If this was the answer you are looking for, please click 'Resolved' - thank you.

  • How to stop the shortcut ctrl-alt-s

    How to stop the shortcut ctrl-alt-s bringing HP info? I use this shortcut elsewhere.

    Here it is:

    http://support.HP.com/us-en/document/c00761879

  • How to stop the Animations of Chrome

    How to stop the animations in Chrome? We're wasting resources and slow down the user interface, especially when the user interface is already slow due to the nature of Firefox non-multitraitement. It is like throwing cement on a turtle.

    The animation of the tab bar has a pref browser.tabs.animate related to this and can be set to false.

Maybe you are looking for