While and loop output conditionally scenario

Hi all

I have a loop that I want to go 5 times (for or while loop), GOLD output conditionally using a button at any time. that each iteration takes 5 minutes to complete, and to Midway through the iteration 2 I decided that I wanted to stop the process, which is currently (and I appreciatte it is normal behavior) is the loop ends the iteration 2 and then continues for a for an iteration. Therefore, stopping after iteration 3.

Is it possible to keep it from begin iteration 3 at all?

Thank you very much

Force your stop command to read when the process is complete.

Tags: NI Software

Similar Questions

  • 2014 CC Dreamweaver takes conditional text? Specifically, I can put all my tech in a location data and the output of the subsets of data (doc Admin against doc user versus doc Marketing) based on tags or other methods?

    CC of Dreamweaver takes conditional text? Specifically, can I put all of my tech data in a doc of DW and the output of the subsets of data (doc Admin against doc user versus doc Marketing) based on tags or other methods?

    I don't have any front-end text editor (such as FrameMaker) or I'd do it here. Dreamweaver can do this without complex workarounds or procedures not supported?

    Thank you very much.

    Mike the Newbie

    OK, that's fine. DW not conditionalization and I'll see if I can get what I need to do or find another approach.

    Thanks a lot for your help.

    Michael

  • Using of FPGA VHDL IP and analog output

    I use a system with Labview 2014 PXI. I've got Labview FPGA to program and run the card PXI-7854R.

    I have the VHDL Code I want to use to control an analog output of the card. I use the IP integration node for this now but I also tried it making the process CLIP and still have not been successful. The problem that arises is that the IP integration node must be in a timed loop, while the analog output indicates that it cannot be put in a timed loop. Is there a way to provide an output of VHDL analog outputs of the card?

    I tried to embed a loop timed within a while loop, but it still does not work.

    I can't download the VI due to the policy of the company, but suppose I'm generating a sine wave in my VHDL code which must lead to the analog output of the card (the actual wave is company owner information but it is generated by a glance to the top of the table as a sine wave VHDL would be).

    In an attempt to work the problem I retried import CLIP of the HDL code in a new project in Labview and VI. I'm still not sure about why it did not work with each other when I tried it.

    For anyone who seeks to solve this problem:

    I basically used this tutorial for the process CLIP: http://www.ni.com/tutorial/7444/en/

    It also explains the differences between the CLAMP and the IP integration node.

  • While time loop clock pc

    Hi guys

    I have a code that uses a while (currently) loop to open a file and read from time to time (in its simplest form... and... the details are not German to this post)

    The requirements are now tight and the loop (While or Timed?) should play the file once every two minutes based on the computer's clock (accuracy is not too important, certainly not milliseconds)

    for example, time is 11:35... Read file

    time is 11:36... .. do nothing

    time is 11:37... read the file

    time is 11:38... do nothing

    etc.   etc.

    In simpler terms (if possible)... have the loop to execute code inside every two minutes with the coming of the pc clock time sequence.

    I watched call loops (but never used them) and they seem to be a possibility

    Then, someone could show me an example of how best to do so.

    Thanks for your help and best regards

    Ray

    You forgot to update both get into the shift register.

  • Table 2D in a loop output

    Hello

    I need out of loop (several table string) data IN table 2D. I use Replace subset of table inside the loop (after table initialized). Exit works (I see each string right step in his place), but each RollBar according to clear all the previous channels 0 0 0. Finally stay only the last string in the results table (see figure). Output to a file works perfectly.

     

    Similarly, no results outside of the loop.

     

    WHY?

    I am a beginner...

    You use the same table to start each time, not the last update. Initialize the array outside of the loop, and then assign the loop filter in the registry to offset. Then, as now, use the spare board and the output power for the passage of right to register.

    /Y

  • Desktop Windows 7 does not start in windows and loops to fix the screen

    You have a problem!  HP mdl 3000mt-4 GB-150 GB hard drive-windows 7-32 bit.  These units have worked without problem for 2 years.  We have over 300 units on the line.  We have now 4 units with the same question.  This started with one and over a period of a week don't appear on other units.  At startup, units go to the window of recovery of windows and loop at startup then the window of recovery again.  We did all of the normal stuff.  1 changed all the addons - Ko / monitor / mouse.  2. change of power.  3 removed hd and replaced by unit of work known.  There are still problems.  4. place hd removed in the work unit and had no problem.  5 cards of memory removed and checked everything.  There are still problems.  6 re-created 3 separate times.  Problem remains.  7. Unit will not boot with the floppy in windows 7.  8. called HP and they sent the new motherboard.  Problem remains.  9. yet called HP and after all, they knew to test because they sent the new motherboard.  10. While you wait for the new Board of Directors, we have removed all partitions.  We were then able to load from the disk of windows 7.  Unit started several times.  Re imaged.  Re partitioned on image object.  Problem remains.  We must keep the image and it worked.  -In order to consider: we changed everything except cases, wiring and cd.  We have reinstalled the operating system.  So because of all our tests and replacement we have eliminated the virus, hardware or installion.  We have 396 of these units who work, but if it is a failure of systemmatic, we're in trouble.  We organize Sophos software on the network.  Thanks for the suggestions.

    Dave,

    I appreciate your time and efforts.  I don't really have.  For an update, we just finished installing the new motherboard.  It worked for about 10 minutes, then the video starts shaking and adding "ghosting".  We have checked all the connections and restarted.  It works ok now, but we'll let it run for a while.  We'll see how it holds up!  We now have a machine that dropped.  I'm really happy that we are under guarantee if we have all these tips will!  This most recent one done 5.   Thanks again!

  • Question about Threads with WHILE and FOR

    Hi all

    I have a question on threads with a loop on this topic sentece.

    Have the following class:
    class test{
    
    bool foundThing;
    PararellSearch(string [] lista, string s2find){
    while(!foundThing)
    {
    for(int i=0;i<lista.length;i++){
    if(s2find==lista){
    foundThing = true;
    break;
    }
    }
    }
    }
    If I start 10 threads which are using the PararellSearch method to look into lista, each of them inits into a different point, and when some of them found the right word then set foundThing= true. It will stop WHILE and FOR loop in all the threads? 
    If not, how could I do it?
    
    Thanks a lot for your help.
    David.
    
    Edited by: user13553506 on 27-dic-2010 12:15
    
    Edited by: user13553506 on 27-dic-2010 15:54                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    

    When you post the code, you'll want to post a [url http://sscce.org] NBS so that it is clear that what you try to do it. For example:

    1. in the validation of code, put {code} before and after him, then he will be readable.

    2. the convention in Java must start with a capital letter class names, so test, could not test.

    3. the convention in Java is to start with lowercase letters, so parallelSearch, not PWhateverMisspellingYouHaveThere method names.

    4. There is no such thing as bool. It is a Boolean.

    5. it is a String, not string.

    6. never use == to compare the States of objects (such as the content of the strings). Use equals().

    To answer your question: If you create Test 10 objects, then, given that foundThing is an instance variable, there will be 10 variables entirely independent foundThing. An adjustment will not affect the other. In this case, the easiest thing to do would be to foundThing static, so that there is only one copy which is shared by the Test class as a whole. This isn't the only way, or even the best way in all cases, but you have enough other problems to face, so for now to keep things simple.

    Finally, when you have a variable that is shared by multiple threads, you need to either make all the access to this variable synchronized on the same lock (reads and writes), or you need to declare the volatile variable.

  • I bought a gift card a while and now I don't have the balance for her and when I try to buy I can not because I already bought it. Help, please

    I bought a gift card a while and now I don't have the balance for her and when I try to buy I can not because I already bought it. Help, please. If I can't do my 15 birthday money are wasted. He said as I already had a gift card in my account, but somehow everything is over now when I was not yet buy anything!

    A gift card is redeemable only once, it is useless to try to buy it back again.

    To see what, if any, balance you have left on the account you share you: see your credit balance - Apple Support iTunes

    To see what you bought on the account and therefore potentially used some/all of it: see your purchase history in iTunes on Mac or PC - Apple Support store

  • I woke up this morning and my iPhone 6 does not light. I tried to reboot it by holding down the button market / stop and the button "home" but the apple logo never appeared and I had on the charger for a while and still nothing. Please leave suggestions!

    I woke up this morning and my iPhone 6 does not light. I tried to reboot it by holding down the button market / stop and the button "home" but the apple logo never appeared and I had on the charger for a while and still nothing. Please leave suggestions! Thank you

    You can make an appointment at the Apple Store - Genius Bar store and bring it into service. You can also search an Apple Store - find a store - Apple.

  • two inputs and two outputs

    create a VI that will acquire temp and pressure for 10 seconds every 500ms. The thermal strain developed and output quantity is given then:
    stress = 100 * temp + 6 * pressure;
    output = 500 + temp * 0.1 + pressure * 10;
    draw the stress and output temperature Vs. also highlight and Vs output pressure.

    For the question above... I tried this method attached... Please tell me it's writing or not?

    Macarius,

    Because this seems to be not just a school problem, but also a review, I'm not very accurate so that I don't do your work for you.

    Your program can meet the required specifications.  She doesn't have a lot of understanding the power of LabVIEW.  The documentation is non-existent. Style leave much to be desired.

    Depending on what you are supposed to have learned, I would give it a passing beam but low grade.  It could be planning a lot with relatively little effort.

    Lynn

  • While the loop does not stop until 2 more clicks

    I must say that I'm really not familiar with LV, but Im learning.

    So why is that after I clicked on low stop, I had to click my OK button twice, then my program stopped. Why can't it stop immediately?

    Furthermore, if I want to do some of the dice to table, which wire do I missed?

    Thank you!

    Hi RawtoLV,

    You have a while loop in loop a while. When you run the other while the loop stops when you press the stop button, the inner circle while loop always executes. Since your OK button use latch release, what I noticed is that when you pressed the OK button, it quickly into position from true to false, which never stopped during the operation of loop (maybe because of the wait). Can I ask what are you actually doing with the structure of sequence?

    I would suggest using the event structure in place (http://zone.ni.com/reference/en-XX/help/371361K-01/glang/event_structure/):

    Here are some information about the structure of the event:

    http://www.NI.com/white-paper/3331/en/

    http://www.YouTube.com/watch?v=8eO64fo3Pho

    Warm greetings,

    Lennard.C

  • I did not use my PC for a while and have forgotten my user name and password. It is now necessary for me to install software on this PC, but need to log-in to do this

    Original title: Log-in question

    I did not use my PC for a while and have forgotten my user name and password.  It is now necessary for me to install software on this PC, but need to log-in to do this.  How can I better log-int?

    The software is now located on my desktop but cannot be put to use; apparently because it is not installed in a suitable place in my computer.  Using the Guest login does not work since the installation of this software is not allowed in the comments section.  Your ideas will be appreciated.

    Hello

    What account are you connected to? Administrator or guest account?

    See the following article: Microsoft's strategy concerning lost or forgotten passwords

  • Remote Desktop services how much bandwidth (RDP) takes on the internet and in what conditions?

    Please give me the detais how remote desktop broadband bandwidth services (RDP) takes on the internet / WAN and under what conditions (XP, 2003, 2008)?

    Hi, Maxim,.

    Your question is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public. Please ask your question in the following forum.

    (Services Terminal Server) Remote Desktop Services Forum

  • Windows has a program to make a picture of so video a while and where is it?

    Windows has a program to make a picture of so video a while and where is it?

    To pause the video and take a screenshot. Here are some free tools to make the shot easier screen.
     
     
     
     
     
     
  • can not access my aol email, I get a runtime error c ++ and loops twice and stops

    can not access my aol email, I get a runtime error c ++ and loop two times and stops and asks me to come back to aol or at home< this="" happens="" after="" i="" enter="" my="" password="" and="" username="" wich="" are="" correct.="" i="" have="" windows="" vista="" home="" premiums="" and="" internete="" xplorer="">

    Clearing cache didn't work, but its workin ok now the problem of his party do not know exactly how or why, but I've done a series of

    desperate, moves like get ie updates several times and also added a bar aol to my internet explore with a small icon of mail on this topic

    and I started to use this icon to get my mail, which he was the only way I could see the mail, I also downloaded AIM mail which I never used

    but suddenly the stop error and now its back to normal.

    Thank you.

Maybe you are looking for