Please help me stop my program when n gets to 15

Hey guys

After collecting a lot of suggestiong from you, im almost done with my vi.

I need one more thing, I have not been able to do. I have a counter on my vi (that of the FOR LOOP) which will take place from 1 to 15 and start again. I need my vi to stop completely when this counter gets to 15. I tried a while loop that compares the counter to 15 and returns a Boolean value to stop the program, but I couldn't make it work.

Here's a zip with my vi file and a measure to test. I'd really appreciate it if someone could help me with this simple question.

Thank you!

You must still click run on the toolbar, unless you set the properties to automatically run the opening.

You can create a part of the initialization of your program (maybe 1 frame of a sequence of flat, while your current code is in the following image) which defines the controls using local variables to anything you want.  You can also create a while loop with a small wait instruction that ends when the button "front run" is pressed, and then follow the rest of your code.  A structure of the event would be a choice even better.

Tags: NI Software

Similar Questions

  • I use windows 10 on pc. Creative cloud must update. He gets 2% and keep saying "error code: 81 please close the other setup programs" when you look at the Task Manager, no setup program is running. What should I do? Photoshop and Lightroom will not wor

    I use windows 10 on pc. Creative cloud must update. He arrived at 2% and stops, saying: "error code: 81 please close the other setup programs" when you look at the Task Manager, no setup program is running. What should I do? Photoshop and Lightroom do not work for me right now.

    Close applications or contradictory processes

    Solve the problems of downloading and installation of Adobe Creative Cloud

    Mylenium

  • My phone suddenly stopped waking up when I get a text

    Out of the blue today, my phone stopped 'waking up' when I get a text message or wickr.  Yesterday, it was perfectly fine.  Nothing is different.

    I have reset or shut down the phone and that didn't help.   Is there anything else I can do?

    Thank you

    What do you mean by 'waking up' If you want to give a sound so if you have your 'Low battery' mode so that cancels the noise to help your battery. If not then go to 'Settings' and click on sounds and make sure that the volume button is in place all the way. -Jon

  • How stop the audio when I get out of the frame AS 3?

    Hello

    Could someone find out how to stop the audio when I get out of the AS 3 mounting frame? I had around 20 slides running in a swf file. Each slide has the distinct voice on attached to it. I added slides in a layer and voice in the next layer on the timeline.

    Ago next and previous buttons placed throughout this swf to navigate between slides. This is where the question arises. I can travel easily from 1 to 20 slides and even can return trip. But the voice does not stop as soon as I click on the previous or next buttons. It overlaps with the next or previous voice just above.

    I searched online and suggested its use as channel to bring voices on the slides to have a better control. But honestly I don't know how to do. Could someone help me in doing this? This problem can be very simple for others. As I am a beginner in Flash and Actionscript, it hurts.

    Carry me nicely, if this code seems to be bit annoying and even lenthy :-(

    Thanks in advance.

    Code:

    Forward_Button.addEventListener (MouseEvent.CLICK, forward);

    Previous_Button.addEventListener (MouseEvent.CLICK, prev);

    function forward(event:MouseEvent) {}

    if(this.currentFrame == This.totalFrames) {}

    Stop();

    }

    ElseIf (this.currentFrame > = 55 & & this.currentFrame < 201) {}

    gotoAndPlay (201);

    }

    ElseIf (this.currentFrame > = 201 & & this.currentFrame < 310) {}

    gotoAndPlay (310);

    }

    ElseIf (this.currentFrame > = 310 & & this.currentFrame < 430) {}

    gotoAndPlay (430);

    }

    ElseIf (this.currentFrame > = 430 & & this.currentFrame < 530) {}

    gotoAndPlay (530);

    }

    ElseIf (this.currentFrame > = 530 & & this.currentFrame < 640) {}

    gotoAndPlay (640);

    }

    ElseIf (this.currentFrame > = 640 & & this.currentFrame < 750) {}

    gotoAndPlay (750);

    }

    ElseIf (this.currentFrame > = 750 & & this.currentFrame < 860) {}

    gotoAndPlay (860);

    }

    ElseIf (this.currentFrame > = 860 & & this.currentFrame < 970) {}

    gotoAndPlay (970);

    }

    ElseIf (this.currentFrame > = 970 & & this.currentFrame < 1080) {}

    gotoAndPlay (1080);

    }

    ElseIf (this.currentFrame > = 1080 & & this.currentFrame < 1200) {}

    gotoAndPlay (1200);

    }

    ElseIf (this.currentFrame > = 1200 & & this.currentFrame < 1310) {}

    gotoAndPlay (1310);

    }

    ElseIf (this.currentFrame > = 1310 & & this.currentFrame < 1420) {}

    gotoAndPlay (1420);

    }

    ElseIf (this.currentFrame > = 1420 & & this.currentFrame < 1530) {}

    gotoAndPlay (1530);

    }

    ElseIf (this.currentFrame > = 1530 & & this.currentFrame < 1690) {}

    gotoAndPlay (1690);

    }

    ElseIf (this.currentFrame > = 1690 & & this.currentFrame < 1780) {}

    gotoAndPlay (1780);

    }

    ElseIf (this.currentFrame > = 1780 & & this.currentFrame < 1880) {}

    gotoAndPlay (1880);

    }

    ElseIf (this.currentFrame > = 1880 & & this.currentFrame < 2010) {}

    gotoAndPlay (2010);

    }

    ElseIf (this.currentFrame > = 2010 & & this.currentFrame < 2130) {}

    gotoAndPlay (2130);

    }

    }

    function prev(event:MouseEvent) {}

    If (this.currentFrame > = 201 & & this.currentFrame < 310) {}

    gotoAndPlay (55);

    }

    ElseIf (this.currentFrame > = 310 & & this.currentFrame < 430) {}

    gotoAndPlay (201);

    }

    ElseIf (this.currentFrame > = 430 & & this.currentFrame < 530) {}

    gotoAndPlay (310);

    }

    ElseIf (this.currentFrame > = 530 & & this.currentFrame < 640) {}

    gotoAndPlay (430);

    }

    ElseIf (this.currentFrame > = 640 & & this.currentFrame < 750) {}

    gotoAndPlay (530);

    }

    ElseIf (this.currentFrame > = 750 & & this.currentFrame < 860) {}

    gotoAndPlay (640);

    }

    ElseIf (this.currentFrame > = 860 & & this.currentFrame < 970) {}

    gotoAndPlay (750);

    }

    ElseIf (this.currentFrame > = 970 & & this.currentFrame < 1080) {}

    gotoAndPlay (860);

    }

    ElseIf (this.currentFrame > = 1080 & & this.currentFrame < 1200) {}

    gotoAndPlay (970);

    }

    ElseIf (this.currentFrame > = 1200 & & this.currentFrame < 1310) {}

    gotoAndPlay (1080);

    }

    ElseIf (this.currentFrame > = 1310 & & this.currentFrame < 1420) {}

    gotoAndPlay (1200);

    }

    ElseIf (this.currentFrame > = 1420 & & this.currentFrame < 1530) {}

    gotoAndPlay (1310);

    }

    ElseIf (this.currentFrame > = 1530 & & this.currentFrame < 1690) {}

    gotoAndPlay (1420);

    }

    ElseIf (this.currentFrame > = 1690 & & this.currentFrame < 1780) {}

    gotoAndPlay (1530);

    }

    ElseIf (this.currentFrame > = 1780 & & this.currentFrame < 1880) {}

    gotoAndPlay (1690);

    }

    ElseIf (this.currentFrame > = 1880 & & this.currentFrame < 2010) {}

    gotoAndPlay (1780);

    }

    ElseIf (this.currentFrame > = 2010 & & this.currentFrame < 2130) {}

    gotoAndPlay (1880);

    }

    }

    If your sound is directly on the timeline, then change to Stream will solve your problem, but you need to change every single audio clip.

    For example if VO #1 plays frame 1 to 100, you click anywhere in this layer (where you can see the audio waveform), go to properties and flow the Sync value. If VO #2 play frame of 101 to 200, you must click somewhere in there and do the same thing. Go to the properties, press the Sync drop-down list and change the event to Stream.

    This isn't a level property 'layer '. This is a property ONLY of audio current under your cursor is in. So if you have 500 your, you need to go to each of them and the value Stream Sync event 500 times.

  • can't stop the music when I get out of the page.

    Hi all;

    I continue to post in the wrong place.  I'm sorry.  I did this post in AC2 and responses did not look right.  So, here I am again.

    I'm building a website in flash using my limited understanding of action script.   Everything was very good train until I found that if I go to one of my example of my website pages and read (with audio) flash video and click on back to my "home" button, the audio will continue to play.   If I go back to the example page, the video is turned off and when I run the video, she plays again with the other audio.  I hear the audio twice! I know there is an action script to handle this, but I can't understand it.

    My question is, how can I stop the audio when I clicked away from the sample to the homepage or any other page page?

    Thanks in advance for your help.

    I'm using Flash CS4 and a Mac OS operating system.

    Did I mention that I'm not very good with scrupt action, but I'm so close to finishing this web site.

    assign your component an instance name (if it doesn't already have one), for example flv in the frame that contains this component, add:

    flv.addEventListener (Event.REMOVED_FROM_STAGE, removedF);

    function removedF(e:Event):void {}

    FLV. Stop();

    }

  • Please help, my question was answered when I tried simply adding a clarification

    Oh dear. Well. You simply respond with precision to my posted question seems to have marked "resolved". This forum is a nightmare, I'm sorry, but that's how I feel it. I can't even tape all the corrections I write the message, because the type will not appear if I type some thing what what else. I am until 05:00 after trying to deal with the last update of iTunes. Apparently, nobody believes in if it's not broke don't solve this problem, more. So, Yes, the nightmare continues.

    If anyone can please answer the question, please rest assured that he is yet to respond.

    I regret to have updated my iTunes to 12 points, today no matter what. I used to just uncheck a song for the have deleted from my camera when synchronized, but still in my library iTunes for possible later use. Please, please tell me that the feature is still there somehow.

    After the update, I see it's songs with controls grayed out by them... No matter how much I click the checkmarks, they remain the same, checked. It seems no more unchecking.

    To clarify: read the help, it is said that for "remove an element that has been synchronized automatically: do one of the following."

    Deselect the checkbox for the element in your iTunes library and select sync only checked in items... »

    The problem I see is that the controls next to the songs are gray. No amount of clicking on them won't be uncheck the. Is there something I'm missing here?

    Help, please.

    Thank you.

    You're try to uncheck the song in your library, iTunes aren't you? You uncheck the box 'on the iPod.

    Uncheck the box in the library and then synchronize the iPod with the library.

  • Trye all please help with stop();

    OK, I have a movieclip on the stage 2, which plays an animation, waits a random time then plays again.

    the code I used is stop(); does not work.

    section 1 inside the clip:

    function paause() {}
    Play();
    clearInterval (timer) ;}

    section 40:

    Stop();

    Howlong = Math.Random () * 7500 + 4000;
    Timer = setInterval (paause, howlong);

    Stage 3 I have 1 frame with the code stop(); on this subject. It does not work. He seems to act on the code of film clips. Why ive tried to solve this problem for about 4 hours please some 1.

    You should look things up in the Flash help documentation if you want to see how they work.

    In your case, try the following: remove the code you showed 1 frame inside the movieclip and put the following in the frame of 40...

    Stop();

    function paause() {}

    Play();

    }

    howlong var = Math.Random () * 7500 + 4000;
    var timer = setTimeout (paause, howlong);

  • DEP stopped the program when you try to download iTunes

    Original title: try dwnld, computer iTunes won't let me. Is it really a threat

    Arrested DEP. program saying that it was dangerous.

    Hello DeBorah Dixon,.

    Data Execution Prevention (DEP) is a security feature of Windows, tracks how programs use memory. If DEP finds memory used incorrectly, DEP closes the program and let you know.

    Step 1:

    Try the following steps to turn off DEP for iTunes and check if you can download iTunes.

    a. open system by clicking the Start button, clicking Control Panel, clicking system and Maintenance, and then click System.

    b. click on advanced system settings.  If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.

    c. running, click settings.

    d. click the Data Execution Prevention tab and then click on turn on DEP for all programs and services except those I select.

    e. restart and see if it is resolved.

    Check out the link:

    Change Data Execution Prevention settings

    http://windowshelp.Microsoft.com/Windows/en-us/help/1d9bb9b4-f6ba-466D-AC2B-7b8c4f8361611033.mspx

    If you're still having problems, you can read the following article and try to uninstall and reinstall iTunes:

    http://support.Apple.com/kb/HT1923

  • Can you please help with this error message when I go to download the latest version of lightroom 5.4

    Capture.JPG

    I did have problems in the past with the upgrade.  It seems that some link of all kinds have been broken.  I have a Windows PC.

    Thank you

    I just download the update of http://www.adobe.com/support/downloads/detail.jsp?ftpID=5741 and then install it, that's how I do it

  • new windows are open in mozilla firefox after you have reinstalled the old version. the new windows are annoying me because they are shaadi. com please help me

    I have reset my mozilla firefox. as I was in trouble, watch videos before you reset it, I downloaded mozilla but it had the same problem, so I reset it. the problem is after this new windos open in my default browser as shaadi.com etc... They annoy me a lot

     please help to stop those windows from popping
    

    Hello, this looks like a problem maybe caused by adware on your pc. Please go to firefox > addons > extensions and remove any suspicious entries (toolbars, the things that you have not installed intentionally, I don't know what purpose they serve, etc.). also, go to the windows control panel / programs and remove all toolbars or potentially unwanted software from there and run a full scan of your system with the security software you have in place and various other tools such as the free version of malwarebytes & adwcleaner.

    Remove a toolbar that has supported your Firefox or the homepage search
    Fix Firefox problems caused by malicious software

  • I can NOT connect my Facebook account to make Yahtzee can access my contacts. He said that Facebook is not configured on this phone. ??? I have also a certificate has expired and do NOT know how to get a certificate of update. ?  Please Help, I have NOT b

    I can NOT connect my Facebook account to make Yahtzee can access my contacts. He said that Facebook is not configured on this phone. ??? What this mean and how can I solve this problem? I have also a certificate has expired and do NOT know how to get a certificate of update. ?  Please Help, I have NOT been able to get help from any of these Issuea. Very frustrated. Please contact me by txt on my iPhone 352-257-9403 if possible. Thank you for your support

    iOS 9.2.1

    certificate is daily horoscope

    wwhat the devil is and why it has expired?

  • PC automatically shutsdown after every 30 min. I have the last MS Security Essentials installed and running and also the MS Malicious software installed, but none are able to detect any virus or harmful software. Please help in this regard.

    PC automatically shutsdown after every 30 min.  I have the last MS Security Essentials installed and running and also the MS Malicious software installed, but none are able to detect any virus or harmful software.  Please help in this regard.

    You get a bsod?

    Please check the event log to see if there are errors, helping to explain what is happening. Also check the c:\windows\minidump folder. Are there files .dmp created here with the dates that it closed? If so please download them on your skydrive so watch us closer.

    See you soon.

    MyPcHealth - free tools

  • Why my computer shuts up when I get to the windows start screen? __

    Why does my computer stop start up when I get to the windows splash screen? It gets to the screen that says windows with the scroll (Windows xp) bar and does not immediately to the login screen in any mode? (safe mode, log on to last know good setting, safe mode with network...)

    Hi magic_love,

    1. don't you make changes before the show?
    2. do you get an error message?

    If you have external devices attached to the computer, disconnect them and start your computer.

    If the computer does not start, then repair install Windows XP. To do this, see to perform a repair Installation

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Can Hi anyone please help? I want to subscribe to phtoshopCC so I decided to download the free trial version first, but I downloaded it, but when I open it a sign comes up saying that photoshopcc has stopped working. My computer is compatible with the sys

    Can Hi anyone please help? I want to subscribe to PhotoshopCC, I decided to download the free trial version first. I downloaded it, but when I open it a few seconds see a sign indicating photoshopcc has stopped working. My cell phone is compatible with the programme but I only 1.80 ghz is this a problem? I saw that you have 2.0 ghz to run the program, but people have told me that it should work on my laptop?

    hiughkhk, I assume you are using windows 7 or newer.

    Navigate to C:\Program Files\Adobe\Adobe Photoshop CC 2014 - location of the folder in your computer and delete the file named "sniffer" and try to launch the Photoshop CC 2014.

    If you are still having the same problem, please provide newspapers in the event viewer for Photoshop.

    Please use the link on how to view the event logs in the observer of events below.

    http://support.Microsoft.com/kb/308427

    Control Panel > system and security > administrative tools > event viewer > expand windows Logs > Application > search for error or red for the failed module.

    Thank you

  • Help please: error 0x0000007e Stop when starting up on top of Satellite P30 110

    Hello

    I wonder if someone can please help me with a recurring error message I get randomly when starting up. I have a satellite P30-110, with WXP Home SP2 installed. Mobile P4 3.2Ghz processor, 512 RAM, ATI mobility Radeon 9600/9700 series.

    Turns off the computer as usual last night. He walks this morning and think that it load the bios OK and then got the black background with Win XP, and then think about this error page came. Has a blue background with the following text:

    "A problem has been detected and Windows has shut down to prevent damage to your computer.

    If this is the first time you've seen this Stop error screen, restart your computer. If this screen appears again, follow these steps:

    Make sure you have enough disk space. If a driver is identified in the stop message, disable the driver or check with the manufacturer for driver updates. Try changing video cards.

    Check with your hardware vendor for updates to the BIOS. Disable the BIOS memory options such as implementing caching or shading. If you need to use Safe Mode to remove or disable components, restart your computer, press F8 to select Advanced Startup Options, and then select Safe Mode.

    Technical information:

    "STOP: 0X0000007E (0XC0000005, 0X00000000, 0XF891D384, 0XF891D080).

    I turned the computer off, then restarted when prompted chose to start windows normally, and it seems to start up fine.

    Any ideas?
    Thanks for your help.

    Hello

    If this is the first time, you've seen this error, I'm not too concerned about it. There are not too many people who have not encountered this scenario occasionally.

    The time to worry, if it happens regularly, as this may indicate a component defective that will need to be diagnosed later.

    On this occasion, I suspect that the start process has detected an anomaly any (possibly a play on hard drive control) and rather than allow Windows to continue it stopped with the error on blue screen.

    Kind regards

Maybe you are looking for